]> git.mjollnir.org Git - moodle.git/commitdiff
Merging unmerged code. MDL-11743 and MDL-11671
authorstronk7 <stronk7>
Sun, 18 Nov 2007 17:12:58 +0000 (17:12 +0000)
committerstronk7 <stronk7>
Sun, 18 Nov 2007 17:12:58 +0000 (17:12 +0000)
lib/setuplib.php

index f93fa0ddb36b980efa1e3e0e8530f9c3883e2d1f..eef09358900d6407d3ed56237e6927a064bb646e 100644 (file)
@@ -174,7 +174,7 @@ function setup_is_unicodedb() {
 
     switch ($dbfamily) {
         case 'mysql':
-            $rs = $db->Execute("SHOW VARIABLES LIKE 'character_set_database'");
+            $rs = $db->Execute("SHOW LOCAL VARIABLES LIKE 'character_set_database'");
             if ($rs && !$rs->EOF) { // rs_EOF() not available yet
                 $records = $rs->GetAssoc(true);
                 $encoding = $records['character_set_database']['Value'];