mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-11444 Server crashes in String::ptr / Item_func_json_depth::val_int.
CAST AS JSON didn't set the null_value mark properly.
This commit is contained in:
@ -223,3 +223,6 @@ json_object("a", '{"b": "abcd"}')
|
||||
select json_object("a", cast('{"b": "abcd"}' as json));
|
||||
json_object("a", cast('{"b": "abcd"}' as json))
|
||||
{"a": {"b": "abcd"}}
|
||||
select json_depth(cast(NULL as JSON));
|
||||
json_depth(cast(NULL as JSON))
|
||||
NULL
|
||||
|
Reference in New Issue
Block a user