Re: error codes

From: Barry Lind <barry(at)xythos(dot)com>
To: Felipe Schnack <felipes(at)ritterdosreis(dot)br>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: error codes
Date: 2002-09-26 20:56:39
Message-ID: 3D937487.3070806@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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... :-)

In response to

  • error codes at 2002-09-25 18:59:56 from Felipe Schnack

Browse pgsql-jdbc by date

  From Date Subject
Next Message Magnus Naeslund(f) 2002-09-27 00:47:52 [ANNOUNCE] PQNotify java listen / notify hack
Previous Message Barry Lind 2002-09-26 20:56:34 Re: Is the JDBC driver i18n compatible?