pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Gary Greenberg <gary@icontrol.com>
Cc: 'Heikki Linnakangas' <heikki@enterprisedb.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error while retrieving generated keys
Date: Fri, 9 Mar 2007 18:32:33 -0500
Message-ID: <1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com> (raw)
In-Reply-To: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1>
References: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1>


On 9-Mar-07, at 4:14 PM, Gary Greenberg wrote:

> See my responses inline:
>
>
>
> -----Original Message-----
> From: Heikki Linnakangas [mailto:hlinnaka@gmail.com] On Behalf Of  
> Heikki Linnakangas
> Sent: Friday, March 09, 2007 11:31 AM
> To: Gary Greenberg
> Cc: pgsql-jdbc@postgresql.org
> Subject: Re: [JDBC] Error while retrieving generated keys
>
>
>
> Gary Greenberg wrote:
>
> > I see it now. It should have been, however, mentioned in  
> documentation for
>
> > the JDBC driver.
>
>
>
> Agreed, this question has come up many times recently. Would you  
> like to
>
> write a paragraph or two explaining the situation and the workaround?
>
>
>
> I don't know about an easy workaround. Especially while using  
> frameworks.
>
> I am using Spring framework with Hibernate mapping and a lot of low  
> level Java code is hidden from me. I do not have a particular  
> desire to go back to plain JDBC calls. If I have to, I'd replace  
> INSERT statement with a call to a stored function returning key  
> value. But as said in my original email it is a lot of additional  
> hassle.
>
>
Hibernate deals with this just fine. You just have to specify the  
correct KeyGenerator.
>
>
> > In essence it means that PostgreSQL has fallen into the third  
> world of
>
> > database engines.
>
> ...
>
>  > I am really disappointed that PostgreSQL is becoming a fossil.
>
>
>
> ;-) Now you're exaggerating.
>
> Am I? Who, in his right mind will go back from using JPA or  
> Hibernate to plain old JDBC calls?
>
> Should we go to managing transactions manually, OR mapping, etc?
>
> It would be exaggerating if I’d offer to go back to punch cards or  
> coding in assembler. (I do remember it).
>
> > If there are no plans to make this feature work in the very near  
> future,
>
> > I'll be pushing for replacement of the engine.
>
>
>
> Ken Johanson posted a preliminary patch in February, but there was a
>
> bunch of issues with it. This is an open source project, so if you'd
>
> like to see it happen, patches are more than welcome.
>
> I can look up at this patch and see if I can contribute to fix it.  
> Unfortunately I am on tight project schedule.
>
> How do I download the patch, though?
>
> --
>
>    Heikki Linnakangas
>
>    EnterpriseDB   http://www.enterprisedb.com
>
>

view thread (9+ messages)  latest in thread

Message-ID: <1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com>
Permalink:  ../1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com/
Also on:    postgresql.org/message-id/1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com

 · 

reply

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-odbc@postgresql.org
  Cc: pg@fastcrypt.com, gary@icontrol.com, heikki@enterprisedb.com, pgsql-jdbc@postgresql.org
  Subject: Re: Error while retrieving generated keys
  In-Reply-To: <1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com>
  References: <031f01c7628f$fed55e30$740a3c0a@D9GKB4C1> <1B82A631-0DB7-4D4D-A506-8571342C8907@fastcrypt.com>

* 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