]> git.mjollnir.org Git - moodle.git/commitdiff
Adding support for mysqli. MDL-8113
authorstronk7 <stronk7>
Mon, 8 Jan 2007 19:07:41 +0000 (19:07 +0000)
committerstronk7 <stronk7>
Mon, 8 Jan 2007 19:07:41 +0000 (19:07 +0000)
lib/setuplib.php

index db87e4ee618598127e7e71fc2dd3be3701ca71b7..533c0fc7addb9c032045b3c92576fd97395edcad 100644 (file)
@@ -170,6 +170,7 @@ function setup_is_unicodedb() {
 
     switch ($dbtype) {
         case 'mysql':
+        case 'mysqli':
             $rs = $db->Execute("SHOW VARIABLES LIKE 'character_set_database'");
             if ($rs && $rs->RecordCount() > 0) {
                 $records = $rs->GetAssoc(true);