[Proxool-cvs] proxool/src/java-test/org/logicalcobwebs/proxool ProxyStatementTest.java,1.10,1.11
UNMAINTAINED!
Brought to you by:
billhorsman
From: <bil...@us...> - 2004-07-13 21:32:49
|
Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17968/src/java-test/org/logicalcobwebs/proxool Modified Files: ProxyStatementTest.java Log Message: Close the first connection first before opening the real connection (directly) otherwise you get a "database already in use"error on Windows. Index: ProxyStatementTest.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/ProxyStatementTest.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ProxyStatementTest.java 26 May 2004 17:19:09 -0000 1.10 --- ProxyStatementTest.java 13 Jul 2004 21:32:41 -0000 1.11 *************** *** 80,90 **** Class delegateStatementClass = delegateStatement.getClass(); s.close(); ! LOG.debug("Statement " + s.getClass() + " is delegating to " + delegateStatementClass); // get a *real* connection directly from the native driver (bypassing the pool) Connection realConnection = TestHelper.getDirectConnection(); ! Statement realStatement = realConnection.prepareStatement(TestConstants.HYPERSONIC_TEST_SQL); ! Class realStatementClass = realStatement.getClass(); realStatement.close(); --- 80,91 ---- Class delegateStatementClass = delegateStatement.getClass(); s.close(); ! c.close(); ! LOG.debug("Statement " + s.getClass() + " is delegating to " + delegateStatementClass); // get a *real* connection directly from the native driver (bypassing the pool) Connection realConnection = TestHelper.getDirectConnection(); ! Statement realStatement = realConnection.prepareStatement(TestConstants.HYPERSONIC_TEST_SQL); ! Class realStatementClass = realStatement.getClass(); realStatement.close(); *************** *** 178,181 **** --- 179,185 ---- Revision history: $Log$ + Revision 1.11 2004/07/13 21:32:41 billhorsman + Close the first connection first before opening the real connection (directly) otherwise you get a "database already in use"error on Windows. + Revision 1.10 2004/05/26 17:19:09 brenuart Allow JUnit tests to be executed against another database. |