Commit 5682a425 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 293015: PostgreSQL: GROUP BY error when searching for bugs - Patch by…

Bug 293015: PostgreSQL: GROUP BY error when searching for bugs - Patch by Olivier Sirven <osirven@elma.fr> r=mkanat a=myk
parent 03e8bd48
......@@ -1369,7 +1369,7 @@ sub init {
}
}
foreach my $field (@fields) {
foreach my $field (@fields, @orderby) {
next if ($field =~ /(AVG|SUM|COUNT|MAX|MIN|VARIANCE)\s*\(/i ||
$field =~ /^\d+$/ || $field eq "bugs.bug_id");
if ($field =~ /.*AS\s+(\w+)$/i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment