Revision: 13831
          http://gate.svn.sourceforge.net/gate/?rev=13831&view=rev
Author:   valyt
Date:     2011-05-18 09:17:06 +0000 (Wed, 18 May 2011)

Log Message:
-----------
Rolling back a recent change that was opening H2 databases in read-only mode. 
There seems to be a bug in H2 which causes some SELECT statements to fail when 
running against read-only DBs. 

Modified Paths:
--------------
    mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java

Modified: 
mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java
===================================================================
--- mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java 
2011-05-18 01:14:47 UTC (rev 13830)
+++ mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java 
2011-05-18 09:17:06 UTC (rev 13831)
@@ -254,8 +254,7 @@
       // open the database in read-only mode
       dbConnection = DriverManager.getConnection(
               "jdbc:h2:file:" + dbDir.getAbsolutePath() + 
-              "/" + tableBaseName + ";CACHE_SIZE=" + cacheSizeStr + 
-              ";ACCESS_MODE_DATA=r", "sa", "");
+              "/" + tableBaseName + ";CACHE_SIZE=" + cacheSizeStr, "sa", "");
       dbConnection.setReadOnly(true);
     } catch(SQLException e) {
       throw new RuntimeException("Error while initialising the database", e);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to