JDBC error codes to detect duplicates?

From: "David Wall" <d(dot)wall(at)computer(dot)org>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: JDBC error codes to detect duplicates?
Date: 2001-03-01 18:20:28
Message-ID: 017801c0a27c$4b0902a0$5a2b7ad8@expertrade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Max Khon 2001-03-01 18:41:56 Re: JDBC error codes to detect duplicates?
Previous Message Dave Page 2001-03-01 13:53:24 pgAdmin v7.1.0 Released