patch #3117535, replication : Add quotes to database in initial statement

This commit is contained in:
Craig Duncan
2010-11-24 16:56:32 +01:00
committed by Dieter Adriaenssens
parent 63aec5b328
commit d6a7bd40fa
2 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #3103853 [js] Double quotes were not escaped in generated js
- bug #3077463 [core] Events were not copied when copying/renaming database
- bug #1762306 [core] Copy database with view of a view
- patch #3117535 [replication] Add quotes to database in initial statement,
thanks to Craig Duncan - duncan3dc
3.3.8.0 (2010-10-25)
- bug #3059311 [import] BIGINT field type added to table analysis

View File

@@ -125,11 +125,11 @@ if (isset($GLOBALS['sr_take_action'])) {
}
$dblist[] = $tmp_row[0];
PMA_DBI_query('CREATE DATABASE IF NOT EXISTS '.$tmp_row[0], $trg_link);
PMA_DBI_query('CREATE DATABASE IF NOT EXISTS '.PMA_backquote($tmp_row[0]), $trg_link);
} else {
if (array_search($tmp_row[0], $do_db) !== false) {
$dblist[] = $tmp_row[0];
PMA_DBI_query('CREATE DATABASE IF NOT EXISTS '.$tmp_row[0], $trg_link);
PMA_DBI_query('CREATE DATABASE IF NOT EXISTS '.PMA_backquote($tmp_row[0]), $trg_link);
}
}
} // end while