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
This commit is contained in:
bbaetz%student.usyd.edu.au
2002-11-09 23:02:25 +00:00
parent 4c49733aff
commit 134d1a6ccc

View File

@@ -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)});