From: Kris Jurka Date: Mon, 13 Sep 2004 07:14:26 +0000 (+0000) Subject: ResultSet.moveToCurrentRow was checking the cached updateability flag X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e66e046e1f8738246df6e6141d35a178c65c96ed;p=users%2Fbernd%2Fpostgres.git ResultSet.moveToCurrentRow was checking the cached updateability flag assuming it had been set instead of correctly calling the isUpdateable() method which sets the flag if needed. This usually worked because moveToCurrentRow is only useful after a moveToInsertRow call which would set the flag, but this is not required. David Bucciarelli --- diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java index f9c947e409..c5272620d7 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java @@ -692,7 +692,7 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra public synchronized void moveToCurrentRow() throws SQLException { - if (!updateable) + if (!isUpdateable()) { throw new PSQLException( "postgresql.updateable.notupdateable" ); }