Re: SQLException.getErrorCode ?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: SQLException.getErrorCode ?
Дата
Msg-id alpine.BSO.2.00.1005011217130.13830@leary.csoft.net
обсуждение исходный текст
Ответ на SQLException.getErrorCode ?  (Maxime Lévesque <maxime.levesque@gmail.com>)
Ответы Re: SQLException.getErrorCode ?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-jdbc

On Sat, 1 May 2010, Maxime L?vesque wrote:

>  The method  SQLException.getErrorCode of the jdbc driver systematically
> returns 0,
>
>  http://www.postgresql.org/docs/8.4/interactive/errcodes-appendix.html

As I said earlier you need to check SQLException.getSQLState, not
getErrorCode.  As you can see the error conditions listed in the appendix
are not all numeric so they cannot be returned via getErrorCode.

Kris Jurka

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

Предыдущее
От: Maxime Lévesque
Дата:
Сообщение: SQLException.getErrorCode ?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Driver not returning the type for TYPEs