Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f6a54f01e3e0aaf9f0de5415ff6ed96612845622 1 parent 678530d
arborrow authored
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'];
Please sign in to comment.
Something went wrong with that request. Please try again.