Do not set charset for Drizzle.

This commit is contained in:
Michal Čihař
2010-10-21 10:04:37 +02:00
parent 2c7161c7a3
commit ae7a20607d

View File

@@ -979,6 +979,8 @@ function PMA_DBI_postConnect($link, $is_controluser = false)
}
}
/* Skip charsets for Drizzle */
if (PMA_MYSQL_MAJOR_VERSION < 2009) {
if (! empty($GLOBALS['collation_connection'])) {
PMA_DBI_query("SET CHARACTER SET 'utf8';", $link, PMA_DBI_QUERY_STORE);
$mysql_charset = explode('_', $GLOBALS['collation_connection']);
@@ -986,6 +988,7 @@ function PMA_DBI_postConnect($link, $is_controluser = false)
} else {
PMA_DBI_query("SET NAMES 'utf8' COLLATE 'utf8_general_ci';", $link, PMA_DBI_QUERY_STORE);
}
}
}
/**