[CONJS-145] batch rewrite error when packet reach maxAllowedPacket Created: 2020-10-02  Updated: 2020-10-05  Resolved: 2020-10-02

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

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


 Description   

see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/135
When option `maxAllowedPacket` is set, and using batch, an error might be thrown : RangeError [ERR_INVALID_OPT_VALUE]: The value "XXX" is invalid for option "size"

During packet rewrite split, when reaching maxAllowedPacket side, split is incorrectly done.


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