summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-05-11 06:05:19 +0200
committerlpsolit%gmail.com <>2005-05-11 06:05:19 +0200
commit5682a425db16defc910ee94cfb058a9a1235e7e2 (patch)
tree7e463273ec9ee88acce002572b7e207efd1b9c02
parent03e8bd48a9f331feb4f7de50571484596b2df599 (diff)
downloadbugzilla-5682a425db16defc910ee94cfb058a9a1235e7e2.tar.gz
bugzilla-5682a425db16defc910ee94cfb058a9a1235e7e2.tar.xz
Bug 293015: PostgreSQL: GROUP BY error when searching for bugs - Patch by Olivier Sirven <osirven@elma.fr> r=mkanat a=myk
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index b12d714f9..8cefc8cab 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -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) {