From: Kris Jurka <books@ejurka.com>
To: Adam B <adamb@videx.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: A basic Statement.getGeneratedKeys() implementation (patch attached)
Date: Fri, 1 May 2009 16:54:20 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0905011649310.13271@leary.csoft.net> (raw)
In-Reply-To: <49FB5E2D.4020105@videx.com>
References: <49FB5E2D.4020105@videx.com>
On Fri, 1 May 2009, Adam B wrote:
> Our webapp relies heavily on JDBC's Statement.getGeneratedKeys()
> abstraction. We are investigating switching from Mysql to Postgre so I
> created a basic implementation of this feature in the 8.3-604 version of
> the driver. The diff patch is attached.
This has some pretty severe restrictions and some more that aren't
mentioned (overriding getUpdateCount(), not using the V2 protocol which
has nothing to do with JDBC2/3). We've implemented generated key
support in CVS for the upcoming 8.4 release that is more robust, but makes
some other tradeoffs (returning all columns rather that just a single
key). Could you test this out in your application?
CVS info here:
http://jdbc.postgresql.org/development/cvs.html
A thread discussing how it doesn't work for a Spring application here:
http://archives.postgresql.org//pgsql-jdbc/2009-04/threads.php#00081
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, adamb@videx.com
Subject: Re: A basic Statement.getGeneratedKeys() implementation (patch attached)
In-Reply-To: <Pine.BSO.4.64.0905011649310.13271@leary.csoft.net>
References: <49FB5E2D.4020105@videx.com> <Pine.BSO.4.64.0905011649310.13271@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