Always add at least one bug to INSERT statement

i18n
Vitaliy Filippov 2016-12-22 22:00:32 +03:00
parent ca2014f6ce
commit a608641a2b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}