incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1221594 - /incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
Date Wed, 21 Dec 2011 03:55:19 GMT
Author: kwright
Date: Wed Dec 21 03:55:18 2011
New Revision: 1221594

URL: http://svn.apache.org/viewvc?rev=1221594&view=rev
Log:
Set a case-sensitive unicode collation, otherwise nothing works.

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

Modified: incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java?rev=1221594&r1=1221593&r2=1221594&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
(original)
+++ incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
Wed Dec 21 03:55:18 2011
@@ -463,7 +463,8 @@ public class DBInterfaceMySQL extends Da
     try
     {
       list.add("utf8");
-      masterDatabase.executeQuery("CREATE DATABASE "+databaseName+" CHARACTER SET ?",list,
+      list.add("utf8_bin");
+      masterDatabase.executeQuery("CREATE DATABASE "+databaseName+" CHARACTER SET ? COLLATE
?",list,
         null,invalidateKeys,null,false,0,null,null);
     } catch (ManifoldCFException e){
       if (e.getErrorCode() != 4)



Mime
View raw message