diff options
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r-- | Bugzilla/Search.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 6dc2703fc..ac0099ea5 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -802,8 +802,10 @@ sub init { $field =~ /^(relevance|actual_time|percentage_complete)/); # The structure of fields is of the form: # [foo AS] {bar | bar.baz} [ASC | DESC] - # Only the mandatory part bar OR bar.baz is of interest - if ($field =~ /(?:.*\s+AS\s+)?(\w+(\.\w+)?)(?:\s+(ASC|DESC))?$/i) { + # Only the mandatory part bar OR bar.baz is of interest. + # But for Oracle, it needs the real name part instead. + my $regexp = $dbh->GROUPBY_REGEXP; + if ($field =~ /$regexp/i) { push(@groupby, $1) if !grep($_ eq $1, @groupby); } } |