db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1213248 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementJdbc30Test.java
Date Mon, 12 Dec 2011 14:04:27 GMT
Author: kahatlen
Date: Mon Dec 12 14:04:27 2011
New Revision: 1213248

URL: http://svn.apache.org/viewvc?rev=1213248&view=rev
Log:
DERBY-5524: Speed up clean-up after StatementJdbc30Test.xtestMaxOpenStatementsWithQueryTimeout

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementJdbc30Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementJdbc30Test.java?rev=1213248&r1=1213247&r2=1213248&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementJdbc30Test.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementJdbc30Test.java
Mon Dec 12 14:04:27 2011
@@ -301,6 +301,11 @@ public class StatementJdbc30Test extends
      * Section objects until it is closed.
      */
     public void xtestMaxOpenStatementsWithQueryTimeout() throws SQLException {
+        // Disable auto-commit for this test case. Otherwise, closing all the
+        // statements in tearDown() will take forever, since every close() will
+        // force a commit. DERBY-5524.
+        setAutoCommit(false);
+
         Statement[] stmts = new Statement[16500];
         int i = 0;
         try {



Mime
View raw message