Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-245

batch failing when using bulk and metaAsArray

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.2, 3.0.0, 3.0.1, 3.1.0
    • 3.1.1
    • batch
    • 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.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.