Avoid charset queries on Drizzle.

This commit is contained in:
Michal Čihař
2010-10-21 10:04:49 +02:00
parent ae7a20607d
commit 88e6ca4609

View File

@@ -11,8 +11,18 @@ if (! defined('PHPMYADMIN')) {
/**
*
*/
if (! PMA_cacheExists('mysql_charsets_count', true)) {
if (PMA_MYSQL_MAJOR_VERSION > 2009) {
/* There are no charsets in Drizzle */
$GLOBALS['mysql_charsets'] = array();
$GLOBALS['mysql_charsets_descriptions'] = array();
$GLOBALS['mysql_charsets_count'] = 0;
$GLOBALS['mysql_charsets_available'] = array();
$GLOBALS['mysql_collations'] = array();
$GLOBALS['mysql_default_collations'] = array();
$GLOBALS['mysql_collations_flat'] = array();
$GLOBALS['mysql_collations_count'] = 0;
$GLOBALS['mysql_collations_available'] = array();
} elseif (! PMA_cacheExists('mysql_charsets_count', true)) {
$res = PMA_DBI_query('SHOW CHARACTER SET;');
$mysql_charsets = array();