You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2011/12/21 04:55:19 UTC
svn commit: r1221594 -
/incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
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)