Skip to content

Commit

Permalink
rfe #1386 Add IF NOT EXISTS clause when copying database
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Feb 19, 2013
1 parent 5556803 commit f9f8cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ VerboseMultiSubmit, ReplaceHelpImg
- bug #3519 [export] Prevent infinite recursion in PDF export.
- bug #3827 Table specific privileges not displayed for db name containing
underscore
- rfe #1386 Add IF NOT EXISTS clause when copying database

3.5.8.0 (not yet released)
- bug #3828 MariaDB reported as MySQL
Expand Down
2 changes: 1 addition & 1 deletion libraries/operations.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function PMA_getSqlQueryAndCreateDbBeforeCopy()
}
}

$local_query = 'CREATE DATABASE '
$local_query = 'CREATE DATABASE IF NOT EXISTS '
. PMA_Util::backquote($_REQUEST['newname']);
if (isset($_REQUEST['db_collation'])) {
$local_query .= ' DEFAULT'
Expand Down

0 comments on commit f9f8cf8

Please sign in to comment.