mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-11438 Assertion `null_value' failed in Item::send(Protocol*, String*) upon casting NULL as JSON.
test added.
This commit is contained in:
@ -244,6 +244,9 @@ json_object("a", '{"b": "abcd"}')
|
|||||||
select json_object("a", cast('{"b": "abcd"}' as json));
|
select json_object("a", cast('{"b": "abcd"}' as json));
|
||||||
json_object("a", cast('{"b": "abcd"}' as json))
|
json_object("a", cast('{"b": "abcd"}' as json))
|
||||||
{"a": {"b": "abcd"}}
|
{"a": {"b": "abcd"}}
|
||||||
|
select cast(NULL AS JSON);
|
||||||
|
cast(NULL AS JSON)
|
||||||
|
NULL
|
||||||
select json_depth(cast(NULL as JSON));
|
select json_depth(cast(NULL as JSON));
|
||||||
json_depth(cast(NULL as JSON))
|
json_depth(cast(NULL as JSON))
|
||||||
NULL
|
NULL
|
||||||
|
@ -108,5 +108,6 @@ select json_object("a", json_object("b", "abcd"));
|
|||||||
select json_object("a", '{"b": "abcd"}');
|
select json_object("a", '{"b": "abcd"}');
|
||||||
select json_object("a", cast('{"b": "abcd"}' as json));
|
select json_object("a", cast('{"b": "abcd"}' as json));
|
||||||
|
|
||||||
|
select cast(NULL AS JSON);
|
||||||
select json_depth(cast(NULL as JSON));
|
select json_depth(cast(NULL as JSON));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user