Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D26916343BA for ; Mon, 9 Mar 2009 19:39:09 -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 28748-04 for ; Mon, 9 Mar 2009 19:39:02 -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 6B33B634280 for ; Mon, 9 Mar 2009 19:39:05 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2BB4DACB0; Mon, 9 Mar 2009 18:39:04 -0400 (EDT) Date: Mon, 9 Mar 2009 18:39:03 -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: <200903092326.44586.nmset@netcourrier.com> Message-ID: References: <200903092020.58921.nmset@netcourrier.com> <200903092326.44586.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/41 X-Sequence-Number: 19371 On Mon, 9 Mar 2009, Saleem EDAH-TALLY wrote: > I've tried for single and multiple inserts and it does work. > I don't know what would be returned if a table has more than one sequence as > default value for columns, I don't have need for this so I won't try. > > Just for curiosity, does it work by driver implementation solely or are there > changes in PostgreSQL backend that help the implementation ? The 8.2 server release included support for the RETURNING clause for inserts, updates, and deletes which allow the server to return the values generated. http://www.postgresql.org/docs/8.3/static/sql-insert.html Kris Jurka