SQLException error code update? - Mailing list pgsql-jdbc

From Christian Cabanero
Subject SQLException error code update?
Date
Msg-id 000001c1d145$23ae5220$e000a8c0@thematrix
Whole thread Raw
List 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 by date:

Previous
From: "Dave Cramer"
Date:
Subject: Re: DataSource object ?
Next
From: "David Hancock"
Date:
Subject: "No results were returned by the query" exception