postgresql-jdbc.git / summary / log / commit / refs

commit    89d9e80ec44ddacc394ad535e989ee3539ea30ca
Author:   Kris Jurka <books@ejurka.com>
Date:     Mon Sep 13 07:13:52 2004 +0000

    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


org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java index b967e6ed..cd0ccc66 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java +++ b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java @@ -810,7 +810,7 @@ public abstract class AbstractJdbc2ResultSet implements BaseResultSet, org.postg public synchronized void moveToCurrentRow() throws SQLException { - if (!updateable) + if (!isUpdateable()) { throw new PSQLException( "postgresql.updateable.notupdateable" ); } [parent: e645eab85eed]