1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-11570 JSON_MERGE returns incorrect result.

JSON merging fixed.
This commit is contained in:
Alexey Botchkov
2016-12-20 17:32:08 +04:00
parent 83dbb2d43a
commit 95228dc80b
3 changed files with 36 additions and 10 deletions

View File

@@ -315,6 +315,9 @@ Warning 4038 Syntax error in JSON text in argument 1 to function 'json_merge' at
select json_merge('{"a":"b"}','{"c":"d"}');
json_merge('{"a":"b"}','{"c":"d"}')
{"a":"b", "c":"d"}
SELECT JSON_MERGE('[1, 2]', '{"id": 47}');
JSON_MERGE('[1, 2]', '{"id": 47}')
[1, 2, {"id": 47}]
select json_type('{"k1":123, "k2":345}');
json_type('{"k1":123, "k2":345}')
OBJECT