From: Gary Greenberg <gary@icontrol.com>
To: pgsql-jdbc@postgresql.org
Subject: Error while retrieving generated keys
Date: Thu, 8 Mar 2007 19:49:52 -0800
Message-ID: <029901c761fd$feb196e0$740a3c0a@D9GKB4C1> (raw)
My application trew the following exception:
org.postgresql.util.PSQLException: Returning autogenerated keys is not
supported.
at
org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3C
onnection.java:352)
at
org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConn
ection.java:394)
at
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepare
Statement(PoolingDataSource.java:370)
I am using 8.2-504.jdbc3 driver with the PostgreSql 8.0.8 on SUSE Linux.
I have not seen anywhere in the documentation that this standard JDBC3
feature is not supported.
Can anyone explain it to me, please.
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: gary@icontrol.com
Subject: Re: Error while retrieving generated keys
In-Reply-To: <029901c761fd$feb196e0$740a3c0a@D9GKB4C1>
References: <029901c761fd$feb196e0$740a3c0a@D9GKB4C1>
* 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