aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-01-18 21:56:53 +0000
committermkanat%bugzilla.org <>2008-01-18 21:56:53 +0000
commit793c103590ff0742b6163dca25cfc6250c68f803 (patch)
tree854667752ad8e4377c7bc18c2b40177e7f3083da /process_bug.cgi
parent2c8316b9f30ca3ab96b7e8acd1275253ae3e272f (diff)
downloadbugs-793c103590ff0742b6163dca25cfc6250c68f803.tar
bugs-793c103590ff0742b6163dca25cfc6250c68f803.tar.gz
bugs-793c103590ff0742b6163dca25cfc6250c68f803.tar.bz2
bugs-793c103590ff0742b6163dca25cfc6250c68f803.tar.xz
bugs-793c103590ff0742b6163dca25cfc6250c68f803.zip
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-xprocess_bug.cgi8
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]);
}