Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2013-05-20 14:13:35 +02:00
commit 6578c94a54
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -720,6 +720,9 @@ do {
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

View File

@ -706,7 +706,7 @@ class ExportSql extends ExportPlugin
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);