Permalink
Browse files

rfe #1386 Add IF NOT EXISTS clause when copying database

  • Loading branch information...
1 parent 5556803 commit f9f8cf8b8b0a717397e87e997b58d23060530acf @lem9 lem9 committed Feb 19, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 ChangeLog
  2. +1 −1 libraries/operations.lib.php
View
@@ -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
@@ -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'

0 comments on commit f9f8cf8

Please sign in to comment.