Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.6, 10.2(EOL)
-
Ubuntu 16.04 and Debian 8
Description
JSON_OBJECT seems to return NULL when one of its arguments is a string containing one or more backticks. This can be reproduced with:
SELECT JSON_OBJECT('foo', '`') |
or
SELECT JSON_OBJECT("foo", "bar`bar") |
or
SELECT JSON_OBJECT('`', 'foo') |
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Description |
JSON_OBJECT seems to return NULL when one of its arguments is a string containing one or more backticks. This can be reproduced with:
SELECT JSON_OBJECT('foo', '`') or SELECT JSON_OBJECT("foo", "bar`bar") or SELECT JSON_OBJECT('`', 'foo') |
JSON_OBJECT seems to return NULL when one of its arguments is a string containing one or more backticks. This can be reproduced with:
{code:sql} SELECT JSON_OBJECT('foo', '`') {code} or {code:sql} SELECT JSON_OBJECT("foo", "bar`bar") {code} or {code:sql} SELECT JSON_OBJECT('`', 'foo') {code} |
Fix Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.2 [ 14601 ] | |
Assignee | Alexey Botchkov [ holyfoot ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Fix Version/s | 10.2.9 [ 22611 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 81315 ] | MariaDB v4 [ 152357 ] |
For all examples above MySQL 5.7 returns a JSON object.