diff options
author | mkanat%bugzilla.org <> | 2008-01-18 22:56:53 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-01-18 22:56:53 +0100 |
commit | 793c103590ff0742b6163dca25cfc6250c68f803 (patch) | |
tree | 854667752ad8e4377c7bc18c2b40177e7f3083da /process_bug.cgi | |
parent | 2c8316b9f30ca3ab96b7e8acd1275253ae3e272f (diff) | |
download | bugzilla-793c103590ff0742b6163dca25cfc6250c68f803.tar.gz bugzilla-793c103590ff0742b6163dca25cfc6250c68f803.tar.xz |
Bug 408172: [Oracle] Bug lists longer than 1000 bugs fail
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 71be09168..35d41ee00 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -327,11 +327,9 @@ if ($cgi->param('product') ne $cgi->param('dontchange')) { $product = Bugzilla::Product::check_product(scalar $cgi->param('product')); @newprod_ids = ($product->id); } else { - @newprod_ids = @{$dbh->selectcol_arrayref("SELECT DISTINCT product_id - FROM bugs - WHERE bug_id IN (" . - join(',', @idlist) . - ")")}; + @newprod_ids = @{$dbh->selectcol_arrayref( + "SELECT DISTINCT product_id FROM bugs WHERE " + . $dbh->sql_in('bug_id', \@idlist))}; if (scalar(@newprod_ids) == 1) { $product = new Bugzilla::Product($newprod_ids[0]); } |