manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1131046 - /incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
Date Fri, 03 Jun 2011 14:01:47 GMT
Author: kwright
Date: Fri Jun  3 14:01:46 2011
New Revision: 1131046

URL: http://svn.apache.org/viewvc?rev=1131046&view=rev
Log:
Basic parameter updates, as recommended by the HSQLDB project team.

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=1131046&r1=1131045&r2=1131046&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
Fri Jun  3 14:01:46 2011
@@ -78,6 +78,7 @@ public class DBInterfaceHSQLDB extends D
     {
       throw new ManifoldCFException(e.getMessage(),e,ManifoldCFException.SETUP_ERROR);
     }
+    performModification("SET DATABASE TRANSACTION CONTROL MVCC",null,null);
   }
   
   /** Uninitialize.  This method is called during JVM shutdown, in order to close
@@ -278,7 +279,7 @@ public class DBInterfaceHSQLDB extends D
   public void performCreate(String tableName, Map<String,ColumnDescription> columnMap,
StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuilder queryBuffer = new StringBuilder("CREATE TABLE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE CACHED TABLE ");
     queryBuffer.append(tableName);
     queryBuffer.append('(');
     Iterator<String> iter = columnMap.keySet().iterator();
@@ -421,7 +422,7 @@ public class DBInterfaceHSQLDB extends D
   protected static String mapType(String inputType)
   {
     if (inputType.equalsIgnoreCase("longtext"))
-      return "clob";
+      return "longvarchar";
     return inputType;
   }
 
@@ -526,6 +527,7 @@ public class DBInterfaceHSQLDB extends D
   public void createUserAndDatabase(String adminUserName, String adminPassword, StringSet
invalidateKeys)
     throws ManifoldCFException
   {
+    performModification("SET FILES SCALE 512",null,null);
   }
 
   /** Drop user and database.



Mime
View raw message