bug 1443004 part 1: do not generate INSERT for an exported VIEW

This commit is contained in:
Marc Delisle
2006-04-12 21:00:12 +00:00
parent c70930403c
commit 61c509d559
2 changed files with 7 additions and 3 deletions

View File

@@ -436,7 +436,7 @@ if ($export_type == 'server') {
break 3;
}
}
if (isset($GLOBALS[$what . '_data'])) {
if (isset($GLOBALS[$what . '_data']) && ! PMA_tableIsView($current_db, $table)) {
if (!PMA_exportData($current_db, $table, $crlf, $err_url, $local_query)) {
break 3;
}
@@ -467,7 +467,7 @@ if ($export_type == 'server') {
break 2;
}
}
if (isset($GLOBALS[$what . '_data'])) {
if (isset($GLOBALS[$what . '_data']) && ! PMA_tableIsView($db, $table)) {
if (!PMA_exportData($db, $table, $crlf, $err_url, $local_query)) {
break 2;
}
@@ -508,7 +508,7 @@ if ($export_type == 'server') {
break;
}
}
if (isset($GLOBALS[$what . '_data'])) {
if (isset($GLOBALS[$what . '_data']) && ! PMA_tableIsView($db, $table)) {
if (!PMA_exportData($db, $table, $crlf, $err_url, $local_query)) {
break;
}