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/Object.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Object.pm') diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm index 2cf671bc2..23a88855f 100644 --- a/Bugzilla/Object.pm +++ b/Bugzilla/Object.pm @@ -145,8 +145,9 @@ sub new_from_list { push(@detainted_ids, $id); } $objects = $dbh->selectall_arrayref( - "SELECT $columns FROM $table WHERE $id_field IN (" - . join(',', @detainted_ids) . ") ORDER BY $order", {Slice=>{}}); + "SELECT $columns FROM $table WHERE " + . $dbh->sql_in($id_field, \@detainted_ids) + . "ORDER BY $order", {Slice=>{}}); } else { return []; } -- cgit v1.2.3-24-g4f1b