Re: Foreign key constraint & getErrorCode

Поиск
Список
Период
Сортировка
От Ian Pilcher
Тема Re: Foreign key constraint & getErrorCode
Дата
Msg-id chto65$pf2$1@sea.gmane.org
обсуждение исходный текст
Ответ на Re: Foreign key constraint & getErrorCode  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Oliver Jowett wrote:
> Try SQLException.getSQLState() instead. The backend returns (somewhat
> standardized) alphanumeric SQL states with errors and the driver exposes
> these as via getSQLState(). getErrorCode() is numeric, vendor-specific,
> and unused by the current driver.

Works like a charm.  Thanks!

(I didn't realize that the PostgreSQL error codes were alphanumeric;
makes it kind of hard to pack into an integer.)

--
========================================================================
Ian Pilcher                                        i.pilcher@comcast.net
========================================================================

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Foreign key constraint & getErrorCode
Следующее
От: TREPOS Gwenaël
Дата:
Сообщение: JDBC driver for Postgresql 7.5-devel version