db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r631123 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java
Date Tue, 26 Feb 2008 08:11:07 GMT
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();
     }
     
     /**



Mime
View raw message