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

MDEV-21914 JSON_ARRAYAGG doesn't reject ORDER BY clause, but doesn't work either.

ORDER BY fixed for JSON_ARRAYAGG.
This commit is contained in:
Alexey Botchkov
2020-06-04 13:53:14 +04:00
parent 07daf73542
commit 74198384e1
6 changed files with 81 additions and 18 deletions

View File

@ -759,6 +759,8 @@ create view v as (select json_arrayagg(json_object("type", "permPeriod", "id", "
select * from v;
drop view v;
select json_arrayagg(a order by a asc) from (select 1 a union select 2 a) t;
--echo #
--echo # End of 10.5 tests
--echo #