Re: looking for a jdbc method.

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: looking for a jdbc method.
Дата
Msg-id 48C8835E.7030306@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: looking for a jdbc method.  (Craig Ringer <craig@postnewspapers.com.au>)
Ответы Re: looking for a jdbc method.  (Kris Jurka <books@ejurka.com>)
Список 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: looking for a jdbc method.
Следующее
От: "Campbell, Lance"
Дата:
Сообщение: Found a problem with 8.2-508 JDBC 4