From: John Sidney-Woollett <johnsw@wardbrook.com>
To: henr-and@dsv.su.se
Cc: books@ejurka.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: getGeneratedKeys()
Date: Tue, 30 Dec 2003 22:47:41 -0000 (GMT)
Message-ID: <1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com> (raw)
In-Reply-To: <32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se>
References: <3FF1C0EE.4010107@dsv.su.se>
<Pine.LNX.4.33.0312301523060.5331-100000@leary.csoft.net>
<32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se>
Can you do the insert using a function instead, and return the currval on
the underlying sequence?
John
henr-and@dsv.su.se said:
>
>> This method has not been implemented and most likely will not be
>> implemented anytime soon. First it is unclear to me what it means by
>> auto-generated keys. Does it mean just things like serial or anything
>> that a before insert trigger does to modify the row?
>
> In my case it's a serial. I want to get the id-number that my insert
> generates.
> MySQL's JDBC-driver has implemented the method.
>
> --
> Henrik
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
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: johnsw@wardbrook.com, henr-and@dsv.su.se, books@ejurka.com
Subject: Re: getGeneratedKeys()
In-Reply-To: <1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com>
References: <3FF1C0EE.4010107@dsv.su.se> <Pine.LNX.4.33.0312301523060.5331-100000@leary.csoft.net> <32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se> <1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.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