Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 9941 invoked from network); 26 Feb 2008 08:11:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 08:11:29 -0000 Received: (qmail 54528 invoked by uid 500); 26 Feb 2008 08:11:24 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 54503 invoked by uid 500); 26 Feb 2008 08:11:24 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 54492 invoked by uid 99); 26 Feb 2008 08:11:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 00:11:24 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 08:10:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C60741A9832; Tue, 26 Feb 2008 00:11:07 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r631123 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java Date: Tue, 26 Feb 2008 08:11:07 -0000 To: derby-commits@db.apache.org From: kristwaa@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080226081107.C60741A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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(); } /**