From: Laurent Duperval <Laurent.Duperval@fleetmind.com>
To: pgsql-jdbc@postgresql.org
Subject: No error code on unique constraint violation
Date: Mon, 29 Nov 2004 09:57:57 -0500
Message-ID: <41AB38F5.7000205@fleetmind.com> (raw)
Hello,
I'm using postgres-jdbc-80b1.308 (type 3) with Postgres 8 beta 5. I'm
running some unit tests where I test unique constraint violations. When
I get an exception, I check the error code to see what it is and take
appropriate action. With SQL Server and Firebird I get a specific error
code but with the Postgres driver I get 0. I'm not sure if this is a
driver or a Postgres problem.
I'm running on Windows.
L
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: Laurent.Duperval@fleetmind.com
Subject: Re: No error code on unique constraint violation
In-Reply-To: <41AB38F5.7000205@fleetmind.com>
References: <41AB38F5.7000205@fleetmind.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox