From: Kris Jurka <books@ejurka.com>
To: Saleem EDAH-TALLY <nmset@netcourrier.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: getGeneratedKeys
Date: Mon, 9 Mar 2009 18:39:03 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0903091837300.4875@leary.csoft.net> (raw)
In-Reply-To: <200903092326.44586.nmset@netcourrier.com>
References: <200903092020.58921.nmset@netcourrier.com>
<Pine.BSO.4.64.0903091733280.6615@leary.csoft.net>
<200903092326.44586.nmset@netcourrier.com>
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
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: books@ejurka.com, nmset@netcourrier.com
Subject: Re: getGeneratedKeys
In-Reply-To: <Pine.BSO.4.64.0903091837300.4875@leary.csoft.net>
References: <200903092020.58921.nmset@netcourrier.com> <Pine.BSO.4.64.0903091733280.6615@leary.csoft.net> <200903092326.44586.nmset@netcourrier.com> <Pine.BSO.4.64.0903091837300.4875@leary.csoft.net>
* 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