[CONJS-129] Support 10.5 pluggable type Created: 2020-03-25  Updated: 2020-05-22  Resolved: 2020-05-22

Status: Closed
Project: MariaDB Connector/node.js
Component/s: compatibility, other
Affects Version/s: None
Fix Version/s: 2.4.0

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Since https://jira.mariadb.org/browse/MDEV-17832 driver can now differentiate JSON from string
and distinguish GEOMETRY null values types.

Connector must permit to return JSON in place of String for JSON:

    shareConn
      .query(' SELECT jsonField from t')
      .then(rows => {
         // rows must be 
         // [{ t: {"id":2,"val":"t\'est"} }]
         // not 
         // [{ t: '{"id":2,"val":"t\'est"}' }]
      })

Connector must return exact geometry datatype for null value:

    shareConn
      .query(' SELECT null_point_value as t from t')
      .then(rows => {
         // rows must be 
         // [{ t: {type: 'Point', coordinates: null} }]
         // not 
         // [{ t: null }]
      })


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