[LON-CAPA-cvs] cvs: loncom /metadata_database/LONCAPA lonmetadata.pm
raeburn
raeburn@source.lon-capa.org
Mon, 03 Jan 2011 04:47:46 -0000
raeburn Mon Jan 3 04:47:46 2011 EDT
Modified files:
/loncom/metadata_database/LONCAPA lonmetadata.pm
Log:
- explicitly set charset for allusers MySQL table to latin1.
(current default for all Linux distros except SuSE 11.3).
Index: loncom/metadata_database/LONCAPA/lonmetadata.pm
diff -u loncom/metadata_database/LONCAPA/lonmetadata.pm:1.28 loncom/metadata_database/LONCAPA/lonmetadata.pm:1.29
--- loncom/metadata_database/LONCAPA/lonmetadata.pm:1.28 Sun Jan 31 03:12:03 2010
+++ loncom/metadata_database/LONCAPA/lonmetadata.pm Mon Jan 3 04:47:45 2011
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonmetadata.pm,v 1.28 2010/01/31 03:12:03 raeburn Exp $
+# $Id: lonmetadata.pm,v 1.29 2011/01/03 04:47:45 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -382,6 +382,9 @@
push (@Columns,$text);
}
$request .= "(".join(", ",@Columns).") TYPE=MyISAM";
+ if ($tablename =~ /allusers$/) {
+ $request .= ' CHARACTER SET latin1 COLLATE latin1_general_cs ';
+ }
return $request;
}