From 4b024b0f2956d2c2771eb59f871ce5ff2f2ac830 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 9 Aug 2006 18:11:13 +0000 Subject: [PATCH] real cause of the double quote problem --- libraries/mysql_charsets.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'] );