Skip to content
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 da1aa1b commit d3401c2db59fddfd7a56550751711539ebaa71b4 arborrow committed Nov 13, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/setuplib.php
View
2 lib/setuplib.php
@@ -94,7 +94,7 @@ function setup_is_unicodedb() {
switch ($CFG->dbtype) {
case 'mysql':
/// Get MySQL character_set_database value
- $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 d3401c2

Please sign in to comment.
Something went wrong with that request. Please try again.