Permalink
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 e0d2d6e commit 0c412f3b3cf26e44794a19c3769d8a62a8cc70f8 arborrow committed Nov 13, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/setuplib.php
View
@@ -170,7 +170,7 @@ function setup_is_unicodedb() {
switch ($dbtype) {
case 'mysql':
case 'mysqli':
- $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 0c412f3

Please sign in to comment.