bug #1169791, exporting results from queries with limit keyword

This commit is contained in:
Marc Delisle
2005-06-11 09:23:41 +00:00
parent ab217262ea
commit 303bfc02aa
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2005-06-11 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_export.php: bug #1169791, exporting results from queries
with limit keyword
2005-06-08 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php: bug #1216901, missing backquotes on the Browse
feature in case of duplicate entry

View File

@@ -70,7 +70,7 @@ if (isset($sql_query)) {
$inside_bracket = FALSE;
continue;
}
if (!$inside_bracket && $parsed_sql[$i]['type'] == 'alpha_reservedWord' && $parsed_sql[$i]['data'] == 'LIMIT') {
if (!$inside_bracket && $parsed_sql[$i]['type'] == 'alpha_reservedWord' && strtoupper($parsed_sql[$i]['data']) == 'LIMIT') {
// We found LIMIT to remove
$sql_query = '';