Обсуждение: SQLException error code update?

Поиск
Список
Период
Сортировка

SQLException error code update?

От
"Christian Cabanero"
Дата:
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


Re: SQLException error code update?

От
"Serguei Mokhov"
Дата:
----- Original Message -----
From: "Christian Cabanero" <chumpboy@yahoo.com>
Sent: Thursday, March 21, 2002 8:58 PM

> Any word on when the getErrorCode() will be implemented correctly with
> SQLException?

There are no error codes yet in PostgreSQL.
When it gets implemented, they will appear in
the driver too, but you should be able to get messages
themselves.

-s