diff --git a/libraries/mysql_charsets.lib.php b/libraries/mysql_charsets.lib.php index d38775f06..73d8ab0b9 100644 --- a/libraries/mysql_charsets.lib.php +++ b/libraries/mysql_charsets.lib.php @@ -121,8 +121,8 @@ if (PMA_MYSQL_INT_VERSION >= 40100){ // MySQL 4.1.0 does not support seperate charset settings // for databases. PMA_DBI_select_db( $db ); - // we got one case in 4.1.13 where the query does not work - // if this string is in double quotes + // the query does not work if this string is in double quotes + // and MySQL is running in ANSI mode $return = PMA_DBI_fetch_value( 'SHOW VARIABLES LIKE \'collation_database\'', 0, 1 ); if ( isset( $GLOBALS['db'] ) && $db !== $GLOBALS['db'] ) { PMA_DBI_select_db( $GLOBALS['db'] );