bug #1751172 Do not export data when exporting a single VIEW
This commit is contained in:
@@ -78,6 +78,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
+ [display] patch #1749705, Allow multibyte characters in number formatting,
|
||||
thanks to garas
|
||||
- bug #1747215 Export emits blanks at line ends
|
||||
- bug #1751172 Do not export data when exporting a single VIEW
|
||||
|
||||
2.10.3.0 (not yet released)
|
||||
|
||||
|
@@ -762,6 +762,24 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
|
||||
$formatted_table_name = (isset($GLOBALS['sql_backquotes']))
|
||||
? PMA_backquote($table)
|
||||
: '\'' . $table . '\'';
|
||||
|
||||
// Do not export data for a VIEW
|
||||
// (For a VIEW, this is called only when exporting a single VIEW)
|
||||
if (PMA_Table::_isView($db, $table)) {
|
||||
$head = $crlf
|
||||
. PMA_exportComment()
|
||||
. PMA_exportComment('VIEW ' . ' ' . $formatted_table_name)
|
||||
. PMA_exportComment($GLOBALS['strData'] . ': ' . $GLOBALS['strNone'])
|
||||
. PMA_exportComment()
|
||||
. $crlf;
|
||||
|
||||
if (! PMA_exportOutputHandler($head)) {
|
||||
return FALSE;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// it's not a VIEW
|
||||
$head = $crlf
|
||||
. PMA_exportComment()
|
||||
. PMA_exportComment($GLOBALS['strDumpingData'] . ' ' . $formatted_table_name)
|
||||
|
Reference in New Issue
Block a user