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/26 09:11:07 UTC
svn commit: r631123 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java
Author: kristwaa
Date: Tue Feb 26 00:11:06 2008
New Revision: 631123
URL: http://svn.apache.org/viewvc?rev=631123&view=rev
Log:
DERBY-3326: Introduce a caching logical connection and logical prepared statement in the client driver.
Implemented the Connector.shutEngine in CPDSC, as a step in running existing tests with statement pooling enabled.
Patch file: derby-3326-4a-cpdsc_shutEngine.diff
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java?rev=631123&r1=631122&r2=631123&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java Tue Feb 26 00:11:06 2008
@@ -147,7 +147,10 @@
}
public void shutEngine() throws SQLException {
- Assert.fail("shutdown engine not implemened");
+ ConnectionPoolDataSource tmpDs =
+ singleUseDS("shutdownDatabase", "shutdown");
+ JDBCDataSource.setBeanProperty(tmpDs, "databaseName", "");
+ tmpDs.getPooledConnection();
}
/**