patch #3117535, replication : Add quotes to database in initial statement
This commit is contained in:

committed by
Dieter Adriaenssens

parent
63aec5b328
commit
d6a7bd40fa
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user