Re: error codes using JDBC

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: error codes using JDBC
Дата
Msg-id 40F64B13.2070606@opencloud.com
обсуждение исходный текст
Ответ на error codes using JDBC  ("Krishnakanth Rao" <raokr@india.hp.com>)
Список pgsql-jdbc
Krishnakanth Rao wrote:
> Hi,
>
> I'am using the jdbc driver pg73jdbc3.jar in my jdbc code to acces PostGRE
> SQL. Whenever a sql exception occurs it doesnt give me the appropriate error
> code , eg referential integrity constraint voilated etc. The error code from
> the SQLException is always zero.
>
> How do I obtain the exact error code as mentioned in PostGRE documents

Use a 7.4 or later driver (get a recent driver from jdbc.postgresql.org)
against a 7.4 or later server; you should then get a useful SQLState in
most cases.

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: error codes using JDBC
Следующее
От: "Stefano Bonnin"
Дата:
Сообщение: Re: SSL Problem