From a608641a2b07cef6476644f26b216353a54afc26 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 22 Dec 2016 22:00:32 +0300 Subject: [PATCH] Always add at least one bug to INSERT statement --- Bugzilla/Install/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 62e14a1b0..baaeb3afa 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -3523,7 +3523,7 @@ sub _populate_bugs_fulltext $datasize += length $_; } my $s = "($_, ".join(', ', map { $sph->$quote($_) } @{$rows->{$_}})."), "; - if ($len + length $s >= $max_packet) + if ($len > 0 && $len + length $s >= $max_packet) { last; }