From e66e046e1f8738246df6e6141d35a178c65c96ed Mon Sep 17 00:00:00 2001 From: Kris Jurka Date: Mon, 13 Sep 2004 07:14:26 +0000 Subject: [PATCH] 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 --- .../jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ); } -- 2.39.5