[libpostgresql-jdbc-java] 25/93: fixed compile error for 1.5

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:18:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to annotated tag REL9_3_1102
in repository libpostgresql-jdbc-java.

commit 27147b35def4019f55076f4b139cb79c20a2e6a7
Author: Dave Cramer <davecramer at gmail.com>
Date:   Tue Jan 28 09:14:41 2014 -0500

    fixed compile error for 1.5
---
 org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | 10 +++++++++-
 org/postgresql/jdbc2/AbstractJdbc2Statement.java |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
index edbfdb1..b847694 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
@@ -2838,7 +2838,15 @@ public abstract class AbstractJdbc2ResultSet implements BaseResultSet, org.postg
         if (rows == null)
             throw new PSQLException(GT.tr("This ResultSet is closed."), PSQLState.OBJECT_NOT_IN_STATE);
     }
-
+    
+    /*
+     * for jdbc3 to call internally
+     */
+    protected boolean isResultSetClosed()
+    {
+        return rows==null;
+    }
+    
     protected void checkColumnIndex(int column) throws SQLException
     {
         if ( column < 1 || column > fields.length )
diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
index 13630b2..7ca3c4f 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
@@ -2979,7 +2979,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement
         checkClosed();
         ResultSet rs = getResultSet();
 
-        if (rs == null || rs.isClosed() ) {
+        if (rs == null || ((AbstractJdbc2ResultSet)rs).isResultSetClosed() ) {
             // OK, we haven't executed it yet, or it was closed
             // we've got to go to the backend
             // for more info.  We send the full query, but just don't

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list