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:
@ -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]');
|
||||
|
Reference in New Issue
Block a user