From 793c103590ff0742b6163dca25cfc6250c68f803 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 18 Jan 2008 21:56:53 +0000 Subject: Bug 408172: [Oracle] Bug lists longer than 1000 bugs fail Patch By Xiaoou Wu r=mkanat, a=mkanat --- Bugzilla/DB.pm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Bugzilla/DB.pm') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 40cd3e3a1..2a71bcd75 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -391,6 +391,11 @@ sub sql_string_concat { return '(' . join(' || ', @params) . ')'; } +sub sql_in { + my ($self, $column_name, $in_list_ref) = @_; + return " $column_name IN (" . join(',', @$in_list_ref) . ") "; +} + sub sql_fulltext_search { my ($self, $column, $text) = @_; @@ -1918,6 +1923,32 @@ will not be usually used unless it was created as LOWER(column). =back +=item C + +=over + +=item B + +Returns SQL syntax for the C operator. + +Only necessary where an C clause can have more than 1000 items. + +=item B + +=over + +=item C<$column_name> - Column name (e.g. C) + +=item C<$in_list_ref> - an arrayref containing values for C + +=back + +=item B + +Formatted SQL for the C operator. + +=back + =item C =over -- cgit v1.2.3-24-g4f1b