db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r599895 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
Date Fri, 30 Nov 2007 18:29:23 GMT
Author: djd
Date: Fri Nov 30 10:29:19 2007
New Revision: 599895

URL: http://svn.apache.org/viewvc?rev=599895&view=rev
Log:
Close opened statement objects in derbynet/DRDAProtocolTest

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java?rev=599895&r1=599894&r2=599895&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
Fri Nov 30 10:29:19 2007
@@ -30,6 +30,7 @@
 import junit.framework.Test;
 
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
+import org.apache.derbyTesting.junit.JDBC;
 import org.apache.derbyTesting.junit.TestConfiguration;
 
 /**
@@ -56,6 +57,8 @@
         ResultSet rs1 = pSt1.executeQuery();
         rs1.next();
         rs1.close();
+        pSt1.close();
+        st.close();
         
         Connection conn2 = openConnection("SECONDDB2");
         conn2.setAutoCommit(false);
@@ -68,11 +71,11 @@
         rs1 = pSt2.executeQuery();
         rs1.next();
         rs1.close();
+        pSt2.close();
+        st2.close();
         
-        conn1.rollback();
-        conn1.close();
-        conn2.rollback();
-        conn2.close();
+        JDBC.cleanup(conn1);
+        JDBC.cleanup(conn2);
     }
     
     /* ------------------- end helper methods  -------------------------- */



Mime
View raw message