Skip to content

Commit

Permalink
real cause of the double quote problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Aug 9, 2006
1 parent bd71502 commit 4b024b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/mysql_charsets.lib.php
Expand Up @@ -121,8 +121,8 @@ function PMA_getDbCollation( $db ) {
// 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'] );
Expand Down

0 comments on commit 4b024b0

Please sign in to comment.