MySQL 4.1.13 and double quotes in SHOW VARIABLES
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - ChangeLog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2006-08-09 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/mysql_charsets.lib.php: bug #1530574:
|
||||||
|
MySQL 4.1.13 and double quotes in SHOW VARIABLES,
|
||||||
|
thanks to Herve Pages
|
||||||
|
|
||||||
2006-08-08 Marc Delisle <lem9@users.sourceforge.net>
|
2006-08-08 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* db_operations.php: added a FIXME for db copy with Add Constraints
|
* db_operations.php: added a FIXME for db copy with Add Constraints
|
||||||
and mysql extension
|
and mysql extension
|
||||||
|
@@ -121,7 +121,9 @@ 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 );
|
||||||
$return = PMA_DBI_fetch_value( 'SHOW VARIABLES LIKE "collation_database"', 0, 1 );
|
// we got one case in 4.1.13 where the query does not work
|
||||||
|
// if this string is in double quotes
|
||||||
|
$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'] );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user