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

Resultset with same identifier skip data

    XMLWordPrintable

Details

    Description

      Results can have multiple form (JSON with column Ids, Array of result, JSON with table and columns ids, ...)
      For all of them but the array of result, if there is a JSON identifier, some result will be skipped.

      example default (JSON):

      conn.query('SELECT 1, 1 as col1')
                          .then(res => {
                              console.log(res);
                              // res =
                              // [
                              //     { '1': 1, col1: 1 }
                              // ]
                          });
      //but : 
      conn.query('SELECT 1, 1')
                          .then(res => {
                              console.log(res);
                              // res =
                              // [
                              //     { '1': 1}
                              // ]
                          })
      

      Driver must throw an Error if all result won't be present in the results.

      Attachments

        Issue Links

          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.