From: Dave Cramer <pg@fastcrypt.com>
To: Kris Jurka <books@ejurka.com>
Cc: Sven Köhler <skoehler@upb.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to get generated primary key?
Date: Sun, 20 Feb 2005 11:48:01 -0500
Message-ID: <4218BF41.8090808@fastcrypt.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0502191517430.18612@leary.csoft.net>
References: <cv7rtb$1d6$1@sea.gmane.org>
<Pine.BSO.4.56.0502191517430.18612@leary.csoft.net>
Apparently there is work going on to support sql2003 generated keys.
On the upside you are guaranteed that they truly work now as opposed to
some other db's.
Dave
Kris Jurka wrote:
>On Sat, 19 Feb 2005, [ISO-8859-15] Sven Köhler wrote:
>
>
>
>>i know about the nextval and currval functions, but i don't like them,
>>since they don't apply to tables. To get the generated key, you have to
>>know the name of the sequence, not just the name of the table.
>>
>>
>
>8.0 now offers the pg_get_serial_sequence function which may help you out.
>
>
>
>>Does the JDBC-Driver implement the getGeneratedKeys() method?
>>
>>
>
>No, see the many discussions of this in the archives, for example:
>
>http://gborg.postgresql.org/project/pgjdbc/bugs/bugupdate.php?984
>
>http://archives.postgresql.org/pgsql-jdbc/2004-09/msg00190.php
>
>Kris Jurka
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend
>
>
>
>
--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561
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: pg@fastcrypt.com, books@ejurka.com, skoehler@upb.de
Subject: Re: How to get generated primary key?
In-Reply-To: <4218BF41.8090808@fastcrypt.com>
References: <cv7rtb$1d6$1@sea.gmane.org> <Pine.BSO.4.56.0502191517430.18612@leary.csoft.net> <4218BF41.8090808@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