db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o..@apache.org
Subject svn commit: r823515 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SavepointJdbc30Test.java
Date Fri, 09 Oct 2009 11:40:45 GMT
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");



Mime
View raw message