From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Krishnan Trikkadeeri <trikkadeerikrishnan(at)yahoo(dot)in> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: looking for a jdbc method. |
Date: | 2008-09-11 02:33:02 |
Message-ID: | 48C8835E.7030306@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
> I haven't looked into the current status of the interface. It's broken
> by design and should really be deprecated in the JDBC spec, so it's not
> all that interesting.
Er ... I spoke too soon. I could've sworn I ran into a JDBC method that
could only return a single key, but it's not the two-argument form of
PrepareStatement:
http://www.ibm.com/developerworks/java/library/j-jdbcnew/
"the values for the generated keys are obtained by retrieving a
ResultSet from a Statement's instance method, getGeneratedKeys(). The
ResultSet contains a row for each generated key."
My bad.
So - exacltly which PostgreSQL JDBC driver version are you using,
anyway? Can you show some code that doesn't work, and how it fails?
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Campbell, Lance | 2008-09-11 15:46:16 | Found a problem with 8.2-508 JDBC 4 |
Previous Message | Craig Ringer | 2008-09-11 02:28:27 | Re: looking for a jdbc method. |