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 ol...@apache.org on 2009/10/09 13:40:45 UTC

svn commit: r823515 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java

Author: ole
Date: Fri Oct  9 11:40:45 2009
New Revision: 823515

URL: http://svn.apache.org/viewvc?rev=823515&view=rev
Log:
DERBY-3824 - Rollback to savepoint fails on phoneME - xtestRollbackWillReleaseLaterSavepoints: "T1" row count: expected:<1> but was:<8>
Make sure T1 is empty when starting test.

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=823515&r1=823514&r2=823515&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 Fri Oct  9 11:40:45 2009
@@ -921,8 +921,14 @@
      */
     public void xtestRollbackWillReleaseLaterSavepoints() throws SQLException {
         Connection con = getConnection();
-        Savepoint savepoint1 = con.setSavepoint();
+        
         Statement s = createStatement();
+
+        // Make sure T1 is empty (testcase running order might have left content!):
+        s.execute("DELETE FROM T1");
+        
+        Savepoint savepoint1 = con.setSavepoint();
+
         s.executeUpdate("INSERT INTO T1 VALUES(1,1)");
 
         Savepoint savepoint2 = con.setSavepoint("s1");