pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedgetGeneratedKeys() support?
2+ messages / 2 participants
[nested] [flat]
* getGeneratedKeys() support?
@ 2007-08-16 15:18 Benjamin Shive <bshive@comcast.net>
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Shive @ 2007-08-16 15:18 UTC (permalink / raw)
To: pgsql-jdbc
I went through the archive and did see the discussions earlier this
year on adding support for this feature. I use pgsql for my own
projects, but the lack of support for this method is making it harder
to use with other products that are out there. Has there been any
further progress made recently on getting this added? I'd rather keep
using PGpgsql as much as possible (and able to recommend it to others).
http://archives.postgresql.org/pgsql-jdbc/2007-03/msg00090.php
http://archives.postgresql.org/pgsql-jdbc/2007-02/msg00078.php
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: getGeneratedKeys() support?
@ 2007-08-30 21:32 Andrew Lazarus <drlaz@attglobal.net>
parent: Benjamin Shive <bshive@comcast.net>
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lazarus @ 2007-08-30 21:32 UTC (permalink / raw)
To: Benjamin Shive <bshive@comcast.net>; pgsql-jdbc
The current JDBC driver supports the RETURNING clause and it does
exactly what someone would want.
ResultSet rs = statement.executeQuery("INSERT INTO z(myField) VALUES(0)
RETURNING keyName") ;
int key = rs.getInt(1);
Hallelujah
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-08-30 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-08-16 15:18 getGeneratedKeys() support? Benjamin Shive <bshive@comcast.net>
2007-08-30 21:32 ` Andrew Lazarus <drlaz@attglobal.net>
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