diff --git a/ChangeLog b/ChangeLog index 0a10389a3..c6bff7591 100644 --- a/ChangeLog +++ b/ChangeLog @@ -127,6 +127,8 @@ - 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 diff --git a/server_replication.php b/server_replication.php index 6c410fadf..17ac37aeb 100644 --- a/server_replication.php +++ b/server_replication.php @@ -122,11 +122,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