Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id B82D36331DE for ; Mon, 9 Mar 2009 18:38:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 15103-09 for ; Mon, 9 Mar 2009 18:38:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 3B27E6323D4 for ; Mon, 9 Mar 2009 18:38:19 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2BCFBACB0; Mon, 9 Mar 2009 17:38:17 -0400 (EDT) Date: Mon, 9 Mar 2009 17:38:17 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Saleem EDAH-TALLY cc: pgsql-jdbc@postgresql.org Subject: Re: getGeneratedKeys In-Reply-To: <200903092020.58921.nmset@netcourrier.com> Message-ID: References: <200903092020.58921.nmset@netcourrier.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/38 X-Sequence-Number: 19368 On Mon, 9 Mar 2009, Saleem EDAH-TALLY wrote: > This is just a request in the hope it may help not all but 95% of devs. The > other 5% would know by notice that they have to write their own solution; for > now, 100% of devs have to write their own. > > I have followed > http://archives.postgresql.org//pgsql-jdbc/2004-09/msg00191.php > and > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&safe=off&threadm=Pine.LNX.4.33.0312301523060.5331-100000@leary.csoft.net&rnum=3&prev=/groups?q=generated+keys&hl=en&lr=&ie=UTF-8&group=comp.databases.postgresql.interfaces.jdbc&c2coff=1&safe=off&selm=Pine.LNX.4.33.0312301523060.5331-100000%40leary.csoft.net&rnum=3 Those are pretty old, see: http://archives.postgresql.org/pgsql-jdbc/2008-11/msg00041.php http://archives.postgresql.org/pgsql-jdbc/2009-01/msg00015.php The upcoming 8.4 driver will contain support for getGeneratedKeys. If you want to test this out yourself, download the code from CVS or a prebuilt jar from the link in the second message. Kris Jurka