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:
@ -755,6 +755,10 @@ select json_objectagg(a, b) over () from (select 1 a, 2 b) t;
|
||||
SELECT JSON_ARRAYAGG(NULL) FROM (SELECT 1 AS t) AS A;
|
||||
SELECT JSON_ARRAYAGG("null") FROM (SELECT 1 AS t) AS A;
|
||||
|
||||
create view v as (select json_arrayagg(json_object("type", "permPeriod", "id", "asd")) as JSON_DATA);
|
||||
select * from v;
|
||||
drop view v;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.5 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user