Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
3.0.2, 3.0.0, 3.0.1, 3.1.0
-
None
Description
see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/235
batch fails when using bulk and metaAsArray with error :
TypeError: Cannot read properties of undefined (reading 'affectedRows') |
at BatchBulk.success (...\node_modules\mariadb\lib\cmd\batch-bulk.js:388:27) |
at BatchBulk.readOKPacket (...\node_modules\mariadb\lib\cmd\parser.js:182:19) |
at BatchBulk.readResponsePacket (...\node_modules\mariadb\lib\cmd\parser.js:49:21) |
at PacketInputStream.receivePacketBasic (...\node_modules\mariadb\lib\io\packet-input-stream.js:80:9) |
at PacketInputStream.onData (...\node_modules\mariadb\lib\io\packet-input-stream.js:130:20) |
globally, metaAsArray option is not always respected when using batch according to cases.