diff --git a/ChangeLog b/ChangeLog index d483a13ba..3f4a7eb73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/libraries/export/sql.php b/libraries/export/sql.php index 5ae9b8b54..237c07aa7 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -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)