pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Clemens Eisserer <linuxhippy@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Updateable ResultSet doesn't fetch sequence-generated values
Date: Mon, 27 Jul 2009 02:26:26 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.0907270224270.10084@leary.csoft.net> (raw)
In-Reply-To: <194f62550907261310v740cd3f9p8a98fa0a81fcf4f7@mail.gmail.com>
References: <194f62550907261310v740cd3f9p8a98fa0a81fcf4f7@mail.gmail.com>



On Sun, 26 Jul 2009, Clemens Eisserer wrote:

> I am using a library which is using the JDBCRowSet API, in order to bind 
> a user-interface with a SQL database. The library relies on auto 
> generated primary keys (I am using sequences for this task), however 
> after inserting, the key-column with the server-side generated value is 
> set to 0. I am porting the application from MySQL-5.0 to PostgreSQL-8.3, 
> and MySQL sets the key-column to the value generated by auto_increment.
>
> Am I doing something wrong here, or is it a bug? Is that behaviour
> specified at all?

I don't know whether it's unspecified or a bug, but the PG driver doesn't 
do this at the moment.

http://pgfoundry.org/tracker/index.php?func=detail&aid=1010520&group_id=1000224&atid=857

Kris Jurka




view thread (3+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.0907270224270.10084@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.0907270224270.10084@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.0907270224270.10084@leary.csoft.net

 · 

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-jdbc@postgresql.org
  Cc: books@ejurka.com, linuxhippy@gmail.com
  Subject: Re: Updateable ResultSet doesn't fetch sequence-generated values
  In-Reply-To: <alpine.BSO.2.00.0907270224270.10084@leary.csoft.net>
  References: <194f62550907261310v740cd3f9p8a98fa0a81fcf4f7@mail.gmail.com> <alpine.BSO.2.00.0907270224270.10084@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