resultset.getXXX methods return current row even if on insert row

Поиск
Список
Период
Сортировка
От John T. Dow
Тема resultset.getXXX methods return current row even if on insert row
Дата
Msg-id 20120110055143.70F0C1E16586@mail.postgresql.org
обсуждение исходный текст
Список pgsql-jdbc
According to the documentationfor JDBC, you can use the getter methods on the insert row. But the postgres
implementationof JDBC always returns values from the current row. 

John

PS: JDBC does not seem to have a way of asking the driver whether it's on the insert row.

I suppose you could call relative(0). If it's on the insert row it will throw an exception. If not on the insert row,
thenrelative(0) should not throw an exception but it shouldn't do anything else either. Is there a better way? 


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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: problem: query result in jdbc is <> result in psql
Следующее
От: Stefan Keller
Дата:
Сообщение: Re: [GENERAL] Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues