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

Result meta property cannot be deleted, breaking every Sequelize raw query

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.5.5
    • other
    • None

    Description

      The connector attaches the column metadata to a result array as a non-enumerable meta property, defined without configurable. Deleting it therefore throws in strict mode. Sequelize's MariaDB dialect does exactly that on raw results, delete data.meta, so every sequelize.query(sql) without a query type fails with "Cannot delete property 'meta' of [object Array]"

      The property is now defined configurable on query, execute and batch results. It stays non-enumerable by default, as before.

      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.