1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-22084 Squared brackets missing from JSON_ARRAYAGG when used in a view.

Item_func_groupconcat::print() should be fixed to work for the derived
classes.
This commit is contained in:
Alexey Botchkov
2020-06-04 11:00:17 +04:00
parent bb47050e1f
commit 07daf73542
3 changed files with 17 additions and 4 deletions

View File

@ -1235,6 +1235,11 @@ JSON_ARRAYAGG(NULL)
SELECT JSON_ARRAYAGG("null") FROM (SELECT 1 AS t) AS A;
JSON_ARRAYAGG("null")
["null"]
create view v as (select json_arrayagg(json_object("type", "permPeriod", "id", "asd")) as JSON_DATA);
select * from v;
JSON_DATA
[{"type": "permPeriod", "id": "asd"}]
drop view v;
#
# End of 10.5 tests
#