1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-11446 JSON_MERGE accepts arguments in invalid format.

Test case added.
This commit is contained in:
Alexey Botchkov
2016-12-06 01:35:40 +04:00
parent 3bae5328ea
commit fba1eab92f
2 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,9 @@ json_merge('{"1": 2}', '{"true": false}', '{"3": 4}')
select json_merge(NULL,json_object('foo', 1));
json_merge(NULL,json_object('foo', 1))
NULL
select json_merge('a','b');
json_merge('a','b')
NULL
select json_type('{"k1":123, "k2":345}');
json_type('{"k1":123, "k2":345}')
OBJECT