Skip to content

Commit

Permalink
Merge branch 'QA_4_0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed May 20, 2013
2 parents 624e675 + a13b1f4 commit a51604e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -28,6 +28,7 @@ phpMyAdmin - ChangeLog
- bug #3936 Query profiler chart not loading from SQL Query page
- bug #3946 Missing CSV import option "Do not abort on INSERT error"
- bug #3943 Missing Operations>Table options>AUTO_INCREMENT
- bug Missing CREATE DATABASE statement when exporting at database level

4.0.1.0 (2013-05-14)
- bug #3879 Import broken for CSV using LOAD DATA
Expand Down
3 changes: 3 additions & 0 deletions export.php
Expand Up @@ -720,6 +720,9 @@ function PMA_exportOutputHandler($line)
if (! $export_plugin->exportDBHeader($db)) {
break;
}
if (! $export_plugin->exportDBCreate($db)) {
break;
}

if (method_exists($export_plugin, 'exportRoutines')
&& strpos($GLOBALS['sql_structure_or_data'], 'structure') !== false
Expand Down
2 changes: 1 addition & 1 deletion libraries/plugins/export/ExportSql.class.php
Expand Up @@ -706,7 +706,7 @@ public function exportDBCreate($db)
return false;
}
}
$create_query = 'CREATE DATABASE '
$create_query = 'CREATE DATABASE IF NOT EXISTS '
. (isset($GLOBALS['sql_backquotes'])
? PMA_Util::backquoteCompat($db, $compat) : $db);
$collation = PMA_getDbCollation($db);
Expand Down

0 comments on commit a51604e

Please sign in to comment.