You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2011/03/09 11:43:16 UTC
svn commit: r1079736 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java
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();
}
/**