Re: BUG #2593: Improper implimentation of SQLException

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: BUG #2593: Improper implimentation of SQLException
Дата
Msg-id Pine.BSO.4.63.0608300042350.7040@leary2.csoft.net
обсуждение исходный текст
Ответ на BUG #2593: Improper implimentation of SQLException  ("Igor Urisman" <igor.urisman@gmail.com>)
Список pgsql-bugs
On Sun, 27 Aug 2006, Igor Urisman wrote:

>
> The following bug has been logged online:
>
> Bug reference:      2593
> PostgreSQL version: 8.1.3
> Description:        Improper implimentation of SQLException
> Details:
>
> The vendor error code is returned in getSQLState(), instead of getError().
> At least this is the case for 23505 (ERROR: duplicate key violates unique
> constraint ...)

Postgresql does not have specific vendor error codes and always returns 0
for SQLException.getErrorCode().  Postgresql uses standard SQL State
values only.  These often have characters in them so they cannot also be
returned as the vendor error code.

Perhaps the problem is that this page is referring to error codes when a
more careful reading shows that it is really talking about sql state
values?

http://www.postgresql.org/docs/current/static/errcodes-appendix.html

Kris Jurka

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Partially corrupted table
Следующее
От: "Filip Hrbek"
Дата:
Сообщение: Re: Partially corrupted table