summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-11-22 09:23:53 +0100
committerByron Jones <bjones@mozilla.com>2012-11-22 09:23:53 +0100
commitda12cec61f8c7e667b00fc5fc39c827d3593f021 (patch)
treea7993cf0d3ad5c534dd7604b827c8ce8267fcf38 /Bugzilla/DB.pm
parentceafb43c1653b9f596965b8ead840f4cd6a29156 (diff)
downloadbugzilla-da12cec61f8c7e667b00fc5fc39c827d3593f021.tar.gz
bugzilla-da12cec61f8c7e667b00fc5fc39c827d3593f021.tar.xz
Bug 780820: Allows for multiple custom search criteria to match one field
r=dkl,a=LpSolit
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 7756ff53b..877e6cb15 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -385,8 +385,10 @@ sub sql_string_until {
}
sub sql_in {
- my ($self, $column_name, $in_list_ref) = @_;
- return " $column_name IN (" . join(',', @$in_list_ref) . ") ";
+ my ($self, $column_name, $in_list_ref, $negate) = @_;
+ return " $column_name "
+ . ($negate ? "NOT " : "")
+ . "IN (" . join(',', @$in_list_ref) . ") ";
}
sub sql_fulltext_search {