Re: SQLException and error code

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: SQLException and error code
Дата
Msg-id 42E642E4.5050604@opencloud.com
обсуждение исходный текст
Ответ на SQLException and error code  (Peter.Zoche@materna.de)
Список pgsql-jdbc
Peter.Zoche@materna.de wrote:

> I am using postgresql-8.0-310.jdbc3.jar in my application.
> In order to get the error code from an SQLException I have
> to use sqlexception.getSQLState(). Shouldn't it be
> getErrorCode()?

We get a SQLSTATE from the server already, so it makes sense to make
that available via getSQLState().

What exactly do you suggest we return from getErrorCode()?

-O

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

Предыдущее
От: Peter.Zoche@materna.de
Дата:
Сообщение: SQLException and error code
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Timestamp weirdness