[CONJS-127] Resultset with same identifier skip data Created: 2020-03-19  Updated: 2020-04-01  Resolved: 2020-03-19

Status: Closed
Project: MariaDB Connector/node.js
Component/s: API, documentation, other
Affects Version/s: None
Fix Version/s: 2.3.0

Type: New Feature Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
is blocked by CONJS-131 Change CONJS-127 breaks our prodcution Closed

 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.


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