Re: SQLException and error code

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: SQLException and error code
Дата
Msg-id Pine.BSO.4.56.0507261152440.17237@leary.csoft.net
обсуждение исходный текст
Ответ на Re: SQLException and error code  (Peter.Zoche@materna.de)
Список pgsql-jdbc

On Tue, 26 Jul 2005 Peter.Zoche@materna.de wrote:

> Because in the postgresql documentation you can find the following page:
>
> http://www.postgresql.org/docs/8.0/interactive/errcodes-appendix.html#ERRCOD
> ES-TABLE
>
> There you can see all ERROR CODES!
>
> So why is there a method getErrorCode(), if the only thing it does
> is to return zero?

The table is mislabeled a little bit, these are actually SQL State codes.
Note that getErrorCode returns an int, so certainly couldn't return a sql
state like "0100C".

Kris Jurka


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

Предыдущее
От: Mican Bican
Дата:
Сообщение: installing postgresql 8 with an installer.
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Timestamp weirdness