1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-11433 JSON_MERGE returns a non-NULL result with a NULL argument.

Item_func_json_merge fixed.
This commit is contained in:
Alexey Botchkov
2016-12-06 01:32:13 +04:00
parent 486079d159
commit 3bae5328ea
4 changed files with 81 additions and 15 deletions

View File

@ -93,6 +93,11 @@ drop table t1;
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
select json_merge('string');
select json_merge('string', 123);
select json_merge('"string"', 123);
select json_merge('[1, 2]', '[true, false]');
select json_merge('{"1": 2}', '{"true": false}');
select json_merge('{"1": 2}', '{"true": false}', '{"3": 4}');
select json_merge(NULL,json_object('foo', 1));
select json_type('{"k1":123, "k2":345}');
select json_type('[123, "k2", 345]');