Adding support for mysqli. MDL-8113

This commit is contained in:
stronk7 2007-01-08 19:07:41 +00:00
parent 162f74a29f
commit c0fe837eeb

View 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);