diff options
author | bbaetz%student.usyd.edu.au <> | 2002-11-10 08:02:25 +0100 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-11-10 08:02:25 +0100 |
commit | 911599d3eba0787b51171f9a34fa399c13969d9d (patch) | |
tree | 9917b4e81b0f27a078bfb1eced92ced1a99ef863 /Bugzilla | |
parent | 58de3fae5eeb8cc3e6ab95e789387d3c9f4f8c9e (diff) | |
download | bugzilla-911599d3eba0787b51171f9a34fa399c13969d9d.tar.gz bugzilla-911599d3eba0787b51171f9a34fa399c13969d9d.tar.xz |
Bug 179193 - anyexact should use IN, not OR
r=gerv, a=justdave
Diffstat (limited to 'Bugzilla')
-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 73d95c524..de40d47e0 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -626,9 +626,11 @@ sub init { if ($w eq "---" && $f !~ /milestone/) { $w = ""; } - push(@list, "$ff = " . &::SqlQuote($w)); + push(@list, &::SqlQuote($w)); + } + if (@list) { + $term = "$ff IN (" . join (',', @list) . ")"; } - $term = join(" OR ", @list); }, ",anywordssubstr" => sub { $term = join(" OR ", @{GetByWordListSubstr($ff, $v)}); |