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 kr...@apache.org on 2008/02/29 16:03:03 UTC
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
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());