Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
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 }] |
})
|