diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-22 15:25:07 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-22 15:25:07 +0100 |
commit | ed17a711ebddc980f89e8290632f566c37bf762f (patch) | |
tree | 19491f770ce31dd1416e481f4c4c30a7ffd39841 /Bugzilla/DB | |
parent | 468c576588450202d96998d2378949e08406361e (diff) | |
download | bugzilla-ed17a711ebddc980f89e8290632f566c37bf762f.tar.gz bugzilla-ed17a711ebddc980f89e8290632f566c37bf762f.tar.xz |
Bug 780820: Allows for multiple custom search criteria to match one field
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Oracle.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index ebf59533f..7df2c09bb 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -216,16 +216,16 @@ sub sql_position { } sub sql_in { - my ($self, $column_name, $in_list_ref) = @_; + my ($self, $column_name, $in_list_ref, $negate) = @_; my @in_list = @$in_list_ref; - return $self->SUPER::sql_in($column_name, $in_list_ref) if $#in_list < 1000; + return $self->SUPER::sql_in($column_name, $in_list_ref, $negate) if $#in_list < 1000; my @in_str; while (@in_list) { my $length = $#in_list + 1; my $splice = $length > 1000 ? 1000 : $length; my @sub_in_list = splice(@in_list, 0, $splice); push(@in_str, - $self->SUPER::sql_in($column_name, \@sub_in_list)); + $self->SUPER::sql_in($column_name, \@sub_in_list, $negate)); } return "( " . join(" OR ", @in_str) . " )"; } |