incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1178382 - /incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
Date Mon, 03 Oct 2011 12:18:45 GMT
Author: kwright
Date: Mon Oct  3 12:18:44 2011
New Revision: 1178382

URL: http://svn.apache.org/viewvc?rev=1178382&view=rev
Log:
Use the proper shutdown sequence for hsqldb.  Part of CONNECTORS-269.

Modified:
    incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java

Modified: incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java?rev=1178382&r1=1178381&r2=1178382&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
(original)
+++ incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
Mon Oct  3 12:18:44 2011
@@ -100,7 +100,10 @@ public class DBInterfaceHSQLDB extends D
     // For the shutdown itself, eat the exception
     try
     {
-      DriverManager.getConnection(_url+databaseName+";shutdown=true",userName,password).close();
+      Connection c = DriverManager.getConnection(_url+databaseName,userName,password);
+      Statement s = c.createStatement();
+      s.execute("SHUTDOWN");
+      c.close();
     }
     catch (Exception e)
     {



Mime
View raw message