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 8ead149 commit e3f5d9654af1445f6a1c2d1e90db66b35cafd734 arborrow committed Nov 13, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/setuplib.php
View
@@ -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'];

0 comments on commit e3f5d96

Please sign in to comment.