db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r746965 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/IndexSplitDeadlockTest.java
Date Mon, 23 Feb 2009 11:38:04 GMT
Author: kahatlen
Date: Mon Feb 23 11:38:02 2009
New Revision: 746965

URL: http://svn.apache.org/viewvc?rev=746965&view=rev
Log:
DERBY-2991: Use setAutoCommit() helper method in IndexSplitDeadlockTest

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/IndexSplitDeadlockTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/IndexSplitDeadlockTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/IndexSplitDeadlockTest.java?rev=746965&r1=746964&r2=746965&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/IndexSplitDeadlockTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/IndexSplitDeadlockTest.java
Mon Feb 23 11:38:02 2009
@@ -63,7 +63,7 @@
 
     protected void tearDown() throws Exception {
         rollback();
-        getConnection().setAutoCommit(false); // required by JDBC.dropSchema()
+        setAutoCommit(false); // required by JDBC.dropSchema()
         JDBC.dropSchema(getConnection().getMetaData(), "APP");
 
         // Go through all the threads and call waitFor() so that we
@@ -87,7 +87,7 @@
     // there's no test case for fetchMax().
 
     public void testBTreeMaxScan_fetchMaxRowFromBeginning() throws Exception {
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         Statement s = createStatement();
         s.executeUpdate("create table max_scan(x int)");
@@ -184,7 +184,7 @@
     public void testBTreeForwardScan_fetchRows_resumeScanAfterCommitAndSplit()
             throws SQLException {
 
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         // Create a table and an index and populate them
         Statement s1 = createStatement();
@@ -236,7 +236,7 @@
     public void testBTreeForwardScan_fetchRows_resumeScanAfterCompress()
             throws Exception {
 
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         // Create a table and an index and populate them
         Statement s1 = createStatement();
@@ -297,7 +297,7 @@
      */
     public void testBTreeForwardScan_fetchRows_resumeAfterWait_unique()
             throws Exception {
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         // Populate a table with a unique index
         Statement s = createStatement();
@@ -336,7 +336,7 @@
      */
     public void testBTreeForwardScan_fetchRows_resumeAfterWait_unique_split()
             throws Exception {
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         // Populate a table with a unique index
         Statement s = createStatement();
@@ -397,7 +397,7 @@
      */
     public void testBTreeForwardScan_fetchRows_resumeAfterWait_nonUnique()
             throws Exception {
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         // Populate a table with a non-unique index
         Statement s = createStatement();
@@ -437,7 +437,7 @@
      */
     public void testBTreeForwardScan_fetchRows_resumeAfterWait_nonUnique_split()
             throws Exception {
-        getConnection().setAutoCommit(false);
+        setAutoCommit(false);
 
         // Populate a table with a non-unique index
         Statement s = createStatement();



Mime
View raw message