db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r529162 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SQLUtilities.java
Date Mon, 16 Apr 2007 08:21:11 GMT
Author: kahatlen
Date: Mon Apr 16 01:21:08 2007
New Revision: 529162

URL: http://svn.apache.org/viewvc?view=rev&rev=529162
Log:
DERBY-2478: 'Invalid transaction state...' in jdbcapi.SetTransactionIsolationTest

Close Statement and ResultSet.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SQLUtilities.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SQLUtilities.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SQLUtilities.java?view=diff&rev=529162&r1=529161&r2=529162
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SQLUtilities.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SQLUtilities.java Mon Apr
16 01:21:08 2007
@@ -106,6 +106,7 @@
         ResultSet rs = s.executeQuery("values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS()");
         rs.next();
         String rts = rs.getString(1);
+        rs.close();
         return new RuntimeStatisticsParser(rts);
     }
 
@@ -120,7 +121,10 @@
         ResultSet rs = s.getResultSet();
         if (rs != null)
             JDBC.assertDrainResults(rs);
-        return SQLUtilities.getRuntimeStatisticsParser(s2);
+        RuntimeStatisticsParser parser = getRuntimeStatisticsParser(s2);
+        s.close();
+        s2.close();
+        return parser;
     }
     
 }



Mime
View raw message