resultset.getXXX methods return current row even if on insert row - Mailing list pgsql-jdbc

From John T. Dow
Subject resultset.getXXX methods return current row even if on insert row
Date
Msg-id 20120110055143.70F0C1E16586@mail.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Dave Cramer
Date:
Subject: Re: problem: query result in jdbc is <> result in psql
Next
From: Stefan Keller
Date:
Subject: Re: [GENERAL] Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues