mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-21902 Nested JSON_ARRAYAGG in JSON_OBJECT should not get escaped.
This commit is contained in:
@ -1243,6 +1243,9 @@ drop view v;
|
|||||||
select json_arrayagg(a order by a asc) from (select 1 a union select 2 a) t;
|
select json_arrayagg(a order by a asc) from (select 1 a union select 2 a) t;
|
||||||
json_arrayagg(a order by a asc)
|
json_arrayagg(a order by a asc)
|
||||||
[1,2]
|
[1,2]
|
||||||
|
select json_object('x', json_arrayagg(json_object('a', 1)));
|
||||||
|
json_object('x', json_arrayagg(json_object('a', 1)))
|
||||||
|
{"x": [{"a": 1}]}
|
||||||
#
|
#
|
||||||
# End of 10.5 tests
|
# End of 10.5 tests
|
||||||
#
|
#
|
||||||
|
@ -761,6 +761,8 @@ drop view v;
|
|||||||
|
|
||||||
select json_arrayagg(a order by a asc) from (select 1 a union select 2 a) t;
|
select json_arrayagg(a order by a asc) from (select 1 a union select 2 a) t;
|
||||||
|
|
||||||
|
select json_object('x', json_arrayagg(json_object('a', 1)));
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 10.5 tests
|
--echo # End of 10.5 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -5325,6 +5325,7 @@ public:
|
|||||||
{
|
{
|
||||||
return ref ? (*ref)->get_typelib() : NULL;
|
return ref ? (*ref)->get_typelib() : NULL;
|
||||||
}
|
}
|
||||||
|
bool is_json_type() { return (*ref)->is_json_type(); }
|
||||||
|
|
||||||
bool walk(Item_processor processor, bool walk_subquery, void *arg)
|
bool walk(Item_processor processor, bool walk_subquery, void *arg)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user