real cause of the double quote problem

This commit is contained in:
Marc Delisle
2006-08-09 18:11:13 +00:00
parent bd7150230d
commit 4b024b0f29

View File

@@ -121,8 +121,8 @@ if (PMA_MYSQL_INT_VERSION >= 40100){
// MySQL 4.1.0 does not support seperate charset settings // MySQL 4.1.0 does not support seperate charset settings
// for databases. // for databases.
PMA_DBI_select_db( $db ); PMA_DBI_select_db( $db );
// we got one case in 4.1.13 where the query does not work // the query does not work if this string is in double quotes
// 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 ); $return = PMA_DBI_fetch_value( 'SHOW VARIABLES LIKE \'collation_database\'', 0, 1 );
if ( isset( $GLOBALS['db'] ) && $db !== $GLOBALS['db'] ) { if ( isset( $GLOBALS['db'] ) && $db !== $GLOBALS['db'] ) {
PMA_DBI_select_db( $GLOBALS['db'] ); PMA_DBI_select_db( $GLOBALS['db'] );