SQLException error code update?

From: "Christian Cabanero" <chumpboy(at)yahoo(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: SQLException error code update?
Date: 2002-03-22 01:58:58
Message-ID: 000001c1d145$23ae5220$e000a8c0@thematrix
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Hancock 2002-03-22 02:59:36 "No results were returned by the query" exception
Previous Message Dave Cramer 2002-03-21 18:14:05 Re: DataSource object ?