Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AA8DC9FB447 for ; Fri, 9 Mar 2007 08:00:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 65158-06 for ; Fri, 9 Mar 2007 08:00:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 52FFF9FA47A for ; Fri, 9 Mar 2007 08:00:37 -0400 (AST) Received: (qmail 7053 invoked from network); 9 Mar 2007 12:00:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 9 Mar 2007 12:00:36 -0000 In-Reply-To: <029901c761fd$feb196e0$740a3c0a@D9GKB4C1> References: <029901c761fd$feb196e0$740a3c0a@D9GKB4C1> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/alternative; boundary=Apple-Mail-23--286556519 Message-Id: <84E14102-5D12-4A77-8FAF-05AD74992DF1@fastcrypt.com> Cc: From: Dave Cramer Subject: Re: Error while retrieving generated keys Date: Fri, 9 Mar 2007 07:00:55 -0500 To: Gary Greenberg X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/86 X-Sequence-Number: 16800 --Apple-Mail-23--286556519 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Gary, Check the list archives please, we have just had this discussion at length very recently. The short version is that it is not currently implemented. Dave On 8-Mar-07, at 10:49 PM, Gary Greenberg wrote: > My application trew the following exception: > > > > org.postgresql.util.PSQLException: Returning autogenerated keys is > not supported. > > at > org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement > (AbstractJdbc3Connection.java:352) > > at > org.apache.commons.dbcp.DelegatingConnection.prepareStatement > (DelegatingConnection.java:394) > > at org.apache.commons.dbcp.PoolingDataSource > $PoolGuardConnectionWrapper.prepareStatement(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. > > --Apple-Mail-23--286556519 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Gary,

Check the list archives = please, we have just had this discussion at length very = recently.

The = short version is that it is not currently implemented.

Dave
On = 8-Mar-07, at 10:49 PM, Gary Greenberg wrote:

My application trew = the following exception:

=A0

org.postgresql.util.PSQLException: Returning = autogenerated keys is not supported.

=A0=A0=A0=A0=A0=A0=A0 at = org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc= 3Connection.java:352)

=A0=A0=A0=A0=A0=A0=A0 at = org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingCo= nnection.java:394)

=A0=A0=A0=A0=A0=A0=A0 at = org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepa= reStatement(PoolingDataSource.java:370)

=A0

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.



= --Apple-Mail-23--286556519--