Re: getGeneratedKeys() - Mailing list pgsql-jdbc

From John Sidney-Woollett
Subject Re: getGeneratedKeys()
Date
Msg-id 1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com
Whole thread Raw
In response to Re: getGeneratedKeys()  (<henr-and@dsv.su.se>)
Responses Re: getGeneratedKeys()
List pgsql-jdbc
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
>


pgsql-jdbc by date:

Previous
From:
Date:
Subject: Re: getGeneratedKeys()
Next
From:
Date:
Subject: Re: getGeneratedKeys()