bug #2134126 [GUI] SQL error after sorting a subset
This commit is contained in:
@@ -6,6 +6,7 @@ $Id$
|
||||
$HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $
|
||||
|
||||
3.0.1.0 (not yet released)
|
||||
- bug #2134126 [GUI] SQL error after sorting a subset
|
||||
|
||||
3.0.0.0 (2008-09-27)
|
||||
+ [export] properly handle line breaks for YAML, thanks to Dan Barry -
|
||||
|
@@ -466,6 +466,10 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
|
||||
if (isset($analyzed_sql[0]['unsorted_query'])) {
|
||||
$unsorted_sql_query = $analyzed_sql[0]['unsorted_query'];
|
||||
}
|
||||
// Handles the case of multiple clicks on a column's header
|
||||
// which would add many spaces before "ORDER BY" in the
|
||||
// generated query.
|
||||
$unsorted_sql_query = trim($unsorted_sql_query);
|
||||
|
||||
// sorting by indexes, only if it makes sense (only one table ref)
|
||||
if (isset($analyzed_sql) && isset($analyzed_sql[0]) &&
|
||||
|
Reference in New Issue
Block a user