Browse files

MDL-11743 - SHOW LOCAL VARIABLES more accurately returns database cha…

…racter set on some hosts and makes explicit what is normally the default behavior.
  • Loading branch information...
1 parent 678530d commit f6a54f01e3e0aaf9f0de5415ff6ed96612845622 arborrow committed Nov 13, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/setuplib.php
View
2 lib/setuplib.php
@@ -165,7 +165,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->RecordCount() > 0) {
$records = $rs->GetAssoc(true);
$encoding = $records['character_set_database']['Value'];

0 comments on commit f6a54f0

Please sign in to comment.