SQLException.getErrorCode ?

Поиск
Список
Период
Сортировка
От Maxime Lévesque
Тема SQLException.getErrorCode ?
Дата
Msg-id p2m554f5f781005010911te9f69ab9v12f20c3f2139e359@mail.gmail.com
обсуждение исходный текст
Ответы Re: SQLException.getErrorCode ?  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc

 The method  SQLException.getErrorCode of the jdbc driver systematically returns 0,

 From what I have found on the web, the server doesn't have good support for error codes,
and it is the reason the jdbc driver doesn't return error codes.

The doc here talks about error codes :

 http://www.postgresql.org/docs/8.4/interactive/errcodes-appendix.html

Where are error codes support on the roadmap ?

I would like to detect things like 'table does not exist' , constraint does not exist, etc.. from the SQLException

 Is there a workaround ?

 Thanks

 And thanks for the quick replies to my previous questions ! ;-)

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Strange behavior after setting timestamp field to null - A bug?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: SQLException.getErrorCode ?