Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.6
-
None
Description
SELECT JSON_MERGE('[{"a":"b"}]', '{"c":"d"}'); |
-- [{"a": "b"}, {"c": "d"}]
|
|
SELECT JSON_MERGE('[]', '{"c":"d"}'); |
-- MariaDb 10.2: NULL <-- bug
|
-- MySql 5.7: [{"c": "d"}] |
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
SELECT JSON_MERGE('[{"a":"b"}]', '{"c":"d"}');
_-- [{"a": "b"}, {"c": "d"}]_ SELECT JSON_MERGE('[]', '{"c":"d"}'); _-- MariaDb 10.2: NULL_ <-- bug _-- MySql 5.7: [{"c": "d"}]_ |
SELECT JSON_MERGE('[{"a":"b"}]', '{"c":"d"}');
-- [{"a": "b"}, {"c": "d"}] SELECT JSON_MERGE('[]', '{"c":"d"}'); -- MariaDb 10.2: NULL <-- bug -- MySql 5.7: [{"c": "d"}] |
Description |
SELECT JSON_MERGE('[{"a":"b"}]', '{"c":"d"}');
-- [{"a": "b"}, {"c": "d"}] SELECT JSON_MERGE('[]', '{"c":"d"}'); -- MariaDb 10.2: NULL <-- bug -- MySql 5.7: [{"c": "d"}] |
{code:sql}
SELECT JSON_MERGE('[{"a":"b"}]', '{"c":"d"}'); -- [{"a": "b"}, {"c": "d"}] SELECT JSON_MERGE('[]', '{"c":"d"}'); -- MariaDb 10.2: NULL <-- bug -- MySql 5.7: [{"c": "d"}] {code} |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Component/s | JSON [ 13908 ] | |
Component/s | Data types [ 13906 ] | |
Fix 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 [ 81263 ] | MariaDB v4 [ 152339 ] |
Thanks for the report.
JSON_MERGE complains about the empty array:
MariaDB [test]> SHOW WARNINGS;
But JSON_VALID says it's okay:
| 1 |