Procedures and functions should be exported also when entering Export on a single db

This commit is contained in:
Marc Delisle
2011-02-13 14:00:14 -05:00
parent 708638e1dd
commit 1484ca6c00
2 changed files with 69 additions and 48 deletions

View File

@@ -458,6 +458,10 @@ if ($export_type == 'server') {
if (!PMA_exportDBCreate($current_db)) {
break 2;
}
if (function_exists('PMA_exportRoutines') && strpos($GLOBALS['sql_structure_or_data'], 'structure') !== false && isset($GLOBALS['sql_procedure_function'])) {
PMA_exportRoutines($current_db);
}
$tables = PMA_DBI_get_tables($current_db);
$views = array();
foreach ($tables as $table) {
@@ -506,6 +510,11 @@ if ($export_type == 'server') {
if (!PMA_exportDBHeader($db)) {
break;
}
if (function_exists('PMA_exportRoutines') && strpos($GLOBALS['sql_structure_or_data'], 'structure') !== false && isset($GLOBALS['sql_procedure_function'])) {
PMA_exportRoutines($db);
}
$i = 0;
$views = array();
// $tables contains the choices from the user (via $table_select)