Re: error codes - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: error codes
Date
Msg-id 3D937487.3070806@xythos.com
Whole thread Raw
In response to error codes  (Felipe Schnack <felipes@ritterdosreis.br>)
List pgsql-jdbc
Felipe,

The problem is that the postgres database doesn't support error codes,
so jdbc doesn't have anything to report back.  This is on the todo list
for the server and when the server starts returning error codes jdbc
will pass them on to the caller.

thanks,
--Barry


Felipe Schnack wrote:
 >   this driver is setting the error code when a SQLException is thrown? I
 > got an duplicate primary key error, but getErrorCode() result is zero.
 >   Detect which error occurred using getMessage() isn't a really good
 > way... :-)



pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: Is the JDBC driver i18n compatible?
Next
From: Barry Lind
Date:
Subject: Re: [GENERAL] Prepared statement performance...