From 134d1a6ccc55b8646e6a3975faeef1ef29e221cf Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Sat, 9 Nov 2002 23:02:25 +0000 Subject: [PATCH] Bug 179193 - anyexact should use IN, not OR r=gerv, a=justdave git-svn-id: svn://10.0.0.236/trunk@133509 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Search.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search.pm b/mozilla/webtools/bugzilla/Bugzilla/Search.pm index 73d95c5242d..de40d47e04c 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search.pm +++ b/mozilla/webtools/bugzilla/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)});