From: | "John Sidney-Woollett" <johnsw(at)wardbrook(dot)com> |
---|---|
To: | henr-and(at)dsv(dot)su(dot)se |
Cc: | books(at)ejurka(dot)com, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: getGeneratedKeys() |
Date: | 2003-12-30 22:47:41 |
Message-ID: | 1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Can you do the insert using a function instead, and return the currval on
the underlying sequence?
John
henr-and(at)dsv(dot)su(dot)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(at)postgresql(dot)org
>
From | Date | Subject | |
---|---|---|---|
Next Message | henr-and | 2003-12-30 23:18:47 | Re: getGeneratedKeys() |
Previous Message | henr-and | 2003-12-30 21:55:22 | Re: getGeneratedKeys() |