Re: Using \errverbose through JDBC

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Using \errverbose through JDBC
Date: 2017-02-01 13:28:45
Message-ID: CAB=Je-F1dVx9ZpbTAqyPwxxuaNT0PfRbPK8QSo8LKfZ_-guBuA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thomas>This can currently only be used in psql using the \errverbose
command or by changing the VERBOSITY variable.

As far as I know, PSQLException (that is a base class of pgjdbc's
SQLExceptions) always has relevant data avaliable via getServerErrorMessage.

Is it something that you want?

https://github.com/pgjdbc/pgjdbc/blob/8be516d47ece60b7aeba5a9474b5cac1d538a04a/pgjdbc/src/main/java/org/postgresql/util/PSQLException.java#L28

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2017-02-01 13:39:22 Re: Using \errverbose through JDBC
Previous Message Thomas Kellerer 2017-02-01 13:18:09 Using \errverbose through JDBC