Commit 26a31ce1 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 298400: [PostgreSQL] SQL error using buglist.cgi and full text search.…

Bug 298400: [PostgreSQL] SQL error using buglist.cgi and full text search. Column "relevance desc" not valid in GROUP BY Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, r=joel, a=justdave
parent 0f7677a4
......@@ -1386,7 +1386,8 @@ sub init {
foreach my $field (@fields, @orderby) {
next if ($field =~ /(AVG|SUM|COUNT|MAX|MIN|VARIANCE)\s*\(/i ||
$field =~ /^\d+$/ || $field eq "bugs.bug_id");
$field =~ /^\d+$/ || $field eq "bugs.bug_id" ||
$field =~ /^relevance/);
if ($field =~ /.*AS\s+(\w+)$/i) {
push(@groupby, $1) if !grep($_ eq $1, @groupby);
} else {
......
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