Changelog entry for bug #3383711. Some formatting

This commit is contained in:
Madhura Jayaratne
2011-08-04 00:04:16 +05:30
parent 7909da2ea0
commit 68e21b05e4
2 changed files with 4 additions and 2 deletions

View File

@@ -796,8 +796,9 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
// 2.1.3 Check the field name for a bracket.
// If it contains one, it's probably a function column
// like 'COUNT(`field`)'
// This check is not sufficient, see bug #3383711, it still might be a column name of a view, check is_orgname
if (strpos($name_to_use_in_sort, '(') !== false && !$is_orgname) {
// It still might be a column name of a view. See bug #3383711
// Check is_orgname.
if (strpos($name_to_use_in_sort, '(') !== false && ! $is_orgname) {
$sort_order = ' ORDER BY ' . $name_to_use_in_sort . ' ';
} else {
$sort_order = ' ORDER BY ' . $sort_tbl . PMA_backquote($name_to_use_in_sort) . ' ';