diff --git a/ChangeLog b/ChangeLog index 5d4d29cac..921ded46e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-01-21 Marc Delisle + * sql.php3, tbl_properties_export.php3, libraries/build_dump.lib.php3: + row limiting for exported results + 2003-01-21 Michal Cihar * db_datadict.php3, pdf_schema.php3, tbl_printview.php3, tbl_properties.inc.php3, tbl_properties_structure.php3, tbl_select.php3: @@ -19,7 +23,6 @@ $Source$ * sql.php3, tbl_properties_export.php3, tbl_dump.php3, tbl_move_copy.php3, libraries/build_dump.lib.php3: Feature: Export results of SELECTs - (TODO: enable row limiting for the export) 2003-01-17 Marc Delisle * Documentation.html: faq 5.12 about OS X Safari problem diff --git a/libraries/build_dump.lib.php3 b/libraries/build_dump.lib.php3 index 45f3ec15f..8bfebc0f8 100644 --- a/libraries/build_dump.lib.php3 +++ b/libraries/build_dump.lib.php3 @@ -199,7 +199,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ global $current_row; if (!empty($sql_query)) { - $local_query = $sql_query; + $local_query = $sql_query . $add_query; PMA_mysql_select_db($db); } else { $local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query; @@ -332,7 +332,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ global $current_row; if (!empty($sql_query)) { - $local_query = $sql_query; + $local_query = $sql_query . $add_query; PMA_mysql_select_db($db); } else { $local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query; @@ -554,7 +554,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ // Gets the data from the database if (!empty($sql_query)) { - $local_query = $sql_query; + $local_query = $sql_query . $add_query; PMA_mysql_select_db($db); } else { $local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query; @@ -645,7 +645,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ } if (!empty($sql_query)) { - $local_query = $sql_query; + $local_query = $sql_query . $add_query; PMA_mysql_select_db($db); } else { $local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query; @@ -704,7 +704,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ $tex_escape = array("$", "%", "{", "}", "&", "#", "_", "^"); if (!empty($sql_query)) { - $local_query = $sql_query; + $local_query = $sql_query . $add_query; PMA_mysql_select_db($db); } else { $local_query = 'select * from ' . PMA_backquote($db) . '.' . PMA_backquote($table); diff --git a/sql.php3 b/sql.php3 index fff0a4bc3..68a93711f 100755 --- a/sql.php3 +++ b/sql.php3 @@ -567,7 +567,7 @@ else { if (isset($analyzed_sql[0]['table_ref'][0]['table_true_name']) && !isset($analyzed_sql[0]['table_ref'][1]['table_true_name'])) { echo ' ' . "\n" - . ' ' . $strExport . '' . "\n"; + . ' ' . $strExport . '' . "\n"; } // Bookmark Support if required diff --git a/tbl_properties_export.php3 b/tbl_properties_export.php3 index fff685df6..525bb10d2 100755 --- a/tbl_properties_export.php3 +++ b/tbl_properties_export.php3 @@ -106,7 +106,7 @@ echo "\n";
   - ' , '') . "\n"; ?> + ' , '') . "\n"; ?>