db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1079736 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java
Date Wed, 09 Mar 2011 10:43:16 GMT
Author: kahatlen
Date: Wed Mar  9 10:43:15 2011
New Revision: 1079736

URL: http://svn.apache.org/viewvc?rev=1079736&view=rev
Log:
DERBY-5114: Assert failure in SavepointJdbc30Test.testReleaseSqlSavepointAndRollback

Clear the test tables between each test case.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java?rev=1079736&r1=1079735&r2=1079736&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java
Wed Mar  9 10:43:15 2011
@@ -133,12 +133,17 @@ public class SavepointJdbc30Test extends
     }
 
     /**
-     * setUp: Just keep AutoCommit off.
+     * Set up the test environment.
      */
     protected void setUp() throws Exception {
         super.setUp();
         // Keep Autocommit off
         getConnection().setAutoCommit(false);
+        // Clear the tables created by the decorator
+        Statement s = createStatement();
+        s.execute("truncate table t1");
+        s.execute("truncate table t2");
+        commit();
     }
 
     /**



Mime
View raw message