SQLException error code update?

Поиск
Список
Период
Сортировка
От Christian Cabanero
Тема SQLException error code update?
Дата
Msg-id 000001c1d145$23ae5220$e000a8c0@thematrix
обсуждение исходный текст
Список pgsql-jdbc
Any word on when the getErrorCode() will be implemented correctly with
SQLException?  I just found out that this always returns 0 (which made for
some interesting debugging as I've been porting my code from SQLServer to
PostgreSQL).  Any good work arounds?  I was going to use getMessage() and
search for "Cannot insert a duplicate key" but this seems klugey.  Anyone
else come up with a better solution?

-Christian


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Предыдущее
От: "Dave Cramer"
Дата:
Сообщение: Re: DataSource object ?
Следующее
От: "David Hancock"
Дата:
Сообщение: "No results were returned by the query" exception