bug #1179887 ordering by count(*)
This commit is contained in:
@@ -8,6 +8,7 @@ $Source$
|
||||
2005-04-27 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/finnish: update, thanks to Jouni Kahkonen
|
||||
* lang/russian: update, thanks to lobovich
|
||||
* libraries/sqlparser.lib.php: bug #1179887, ordering by count(*)
|
||||
|
||||
2005-04-26 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_properties_structure.php, tbl_properties.inc.php:
|
||||
|
@@ -1480,11 +1480,16 @@ if ($is_minimum_common == FALSE) {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: is it correct to always add $sep ?
|
||||
if (isset($subresult['queryflags']['select_from'])
|
||||
&& $subresult['queryflags']['select_from'] == 1
|
||||
&& !$seen_order) {
|
||||
$unsorted_query .= $arr[$i]['data'] . $sep;
|
||||
$unsorted_query .= $arr[$i]['data'];
|
||||
|
||||
if ($arr[$i]['type'] != 'punct_bracket_open_round'
|
||||
&& $arr[$i]['type'] != 'punct_bracket_close_round'
|
||||
&& $arr[$i]['type'] != 'punct') {
|
||||
$unsorted_query .= $sep;
|
||||
}
|
||||
}
|
||||
|
||||
// clear $upper_data for next iteration
|
||||
|
Reference in New Issue
Block a user