[CONJS-231] BULK command when reaching maximum packet is wrongly split Created: 2022-11-16  Updated: 2023-02-02  Resolved: 2022-11-16

Status: Closed
Project: MariaDB Connector/node.js
Component/s: batch
Affects Version/s: 3.0.2
Fix Version/s: 3.1.0

Type: Bug Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

when executing batch, packet with parameter can be too long to fit in one mysql packet/ reaching max_allowed_packet.
Driver by default use a 4M maximum length if option maxAllowedPacket is not set.

When splitting, if last bunch of parameter size is > 256, then 4 bytes are skipped creating wrong data / server error.


Generated at Thu Feb 08 03:23:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.