From: David Wall <d.wall@computer.org>
To: pgsql-interfaces@postgresql.org
Subject: JDBC error codes to detect duplicates?
Date: Thu, 1 Mar 2001 10:20:28 -0800
Message-ID: <017801c0a27c$4b0902a0$5a2b7ad8@expertrade.com> (raw)
References: <876C89678A051145876D939BF4B7A82C0B56CB@net1.hq.nethouse.it>
It seems that when an INSERT causes a duplicate key exception for
unique/primary keys, the JDBC library is throwing the SQL exception but
there is no code that lets my program detect a duplicate key error, or which
key caused the duplicate error.
Is there a plan for the JDBC to return the codes for postgres back to the
program? I running 7.1beta4 now.
David
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: d.wall@computer.org
Subject: Re: JDBC error codes to detect duplicates?
In-Reply-To: <017801c0a27c$4b0902a0$5a2b7ad8@expertrade.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