MDL-11743 - SHOW LOCAL VARIABLES more accurately returns database character set on some hosts and makes explicit what is normally the default behavior.
This commit is contained in:
+1
-1
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user