OSDN Git Service

Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.uk
authorPeter Mount <peter@retep.org.uk>
Fri, 19 Jan 2001 08:49:06 +0000 (08:49 +0000)
committerPeter Mount <peter@retep.org.uk>
Fri, 19 Jan 2001 08:49:06 +0000 (08:49 +0000)
        - Applied patch submitted by John Schutz <schutz@austin.rr.com> that
          fixed a bug with ANT's SQL functions (not needed for building but nice
          to have fixed).

src/interfaces/jdbc/CHANGELOG
src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java
src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java

index 8547250..1830794 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.uk
+        - Applied patch submitted by John Schutz <schutz@austin.rr.com> that
+          fixed a bug with ANT's SQL functions (not needed for building but nice
+          to have fixed).
+
 Thu Jan 18 17:30:00 GMT 2001 peter@retep.org.uk
         - Added new error message into errors.properties "postgresql.notsensitive"
           This is used by jdbc2.ResultSet when a method is called that should
index fcc6dac..f20bc99 100644 (file)
@@ -281,7 +281,9 @@ public class Statement implements java.sql.Statement
         */
        public java.sql.ResultSet getResultSet() throws SQLException
        {
-               return result;
+          if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
+            return result;
+          return null;
        }
 
        /**
index 5a8f98b..04315c0 100644 (file)
@@ -291,7 +291,9 @@ public class Statement implements java.sql.Statement
         */
        public java.sql.ResultSet getResultSet() throws SQLException
        {
-               return result;
+          if (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())
+            return result;
+          return null;
        }
 
        /**