db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r632338 - in /db/derby/code/trunk/java: client/org/apache/derby/client/ClientPooledConnection.java testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
Date Fri, 29 Feb 2008 15:03:03 GMT
Author: kristwaa
Date: Fri Feb 29 07:03:02 2008
New Revision: 632338

URL: http://svn.apache.org/viewvc?rev=632338&view=rev
Log:
DERBY-3329: Enable statement pooling in the client JDBC driver.
Enabled statement pooling for the client CPDS, and also enabled the tests.
Patch file: derby-3329-2b-enable_statement_pooling-cpds.diff 

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

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java?rev=632338&r1=632337&r2=632338&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java Fri
Feb 29 07:03:02 2008
@@ -99,8 +99,8 @@
             this.statementCache = null;
         } else {
             // Disabled for now.
-            this.statementCache = null;
-            //        new JDBCStatementCache(ds.maxStatementsToPool());
+            this.statementCache =
+                    new JDBCStatementCache(ds.maxStatementsToPool());
         }
 
         try {

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java?rev=632338&r1=632337&r2=632338&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
Fri Feb 29 07:03:02 2008
@@ -121,6 +121,8 @@
             suite.addTest(J2EEDataSourceTest.suite());
             // Test requires ClientConnectionPoolDataSource.
             suite.addTest(ClientConnectionPoolDataSourceTest.suite());
+            // Test requires ClientConnectionPoolDataSource.
+            suite.addTest(StatementPoolingTest.suite());
 
             //suite to test updatable reader for clob in embedded driver
             suite.addTest (ClobUpdatableReaderTest.suite());



Mime
View raw message