Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-03-26 20:31:11 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-03-26 20:31:11 +0400
commit54084929a50a8be2a797972b65d637102b33d47b (patch)
tree8666a67072bbd56a44161863c44a13ea525dbbc4 /sql.php
parentbd8a923e14747b9cf06d88d6373fa41584218de1 (diff)
bug #3510784 [edit] Limit clause ignored when sort order is remembered
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql.php b/sql.php
index 42d72caae2..cccd308453 100644
--- a/sql.php
+++ b/sql.php
@@ -435,7 +435,7 @@ if ($GLOBALS['cfg']['RememberSorting']
// retrieve the remembered sorting order for current table
$sql_order_to_append = ' ORDER BY ' . $sorted_col . ' ';
$full_sql_query = $analyzed_sql[0]['section_before_limit'] . $sql_order_to_append
- . $analyzed_sql[0]['section_after_limit'];
+ . $analyzed_sql[0]['limit_clause'] . ' ' . $analyzed_sql[0]['section_after_limit'];
// update the $analyzed_sql
$analyzed_sql[0]['section_before_limit'] .= $sql_order_to_append;