bug #1851833 [display] Sorting forgets an explicit LIMIT (fix for sorting on column headers)

This commit is contained in:
Marc Delisle
2007-12-16 15:57:09 +00:00
parent 78a3a6dacb
commit 96bd2a4978
2 changed files with 6 additions and 2 deletions

View File

@@ -1491,7 +1491,8 @@ if (! defined('PMA_MINIMUM_COMMON')) {
if ($upper_data == 'LIMIT') {
$in_limit = TRUE;
$limit_clause = '';
$before_limit = FALSE;
$before_limit = FALSE;
$in_order_by = FALSE; // @todo maybe others to set FALSE
}
if ($upper_data == 'PROCEDURE') {
@@ -1673,7 +1674,8 @@ if (! defined('PMA_MINIMUM_COMMON')) {
if (isset($subresult['queryflags']['select_from'])
&& $subresult['queryflags']['select_from'] == 1
&& !$seen_order) {
&& ! $in_order_by
&& $upper_data != 'ORDER') {
$unsorted_query .= $arr[$i]['data'];
if ($arr[$i]['type'] != 'punct_bracket_open_round'