1
0
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:
Alexey Botchkov
2020-06-04 14:21:04 +04:00
parent 74198384e1
commit 2fcff310d0
3 changed files with 6 additions and 0 deletions

View File

@ -1243,6 +1243,9 @@ drop view v;
select json_arrayagg(a order by a asc) from (select 1 a union select 2 a) t;
json_arrayagg(a order by a asc)
[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
#