summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-10-17 20:33:41 +0200
committerlpsolit%gmail.com <>2008-10-17 20:33:41 +0200
commit3f8fe270407b35a2f123074e61fe87720c5e994b (patch)
treec8d20fbef1158a8614530e2cede3cd4594102930 /Bugzilla/Search.pm
parent50035ffc59885e32f744389e732a12d533ec1e66 (diff)
downloadbugzilla-3f8fe270407b35a2f123074e61fe87720c5e994b.tar.gz
bugzilla-3f8fe270407b35a2f123074e61fe87720c5e994b.tar.xz
Bug 455857: [Oracle] 'Find a Specific Bug' doesn't work - Patch by Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm6
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);
}
}