1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-21915 Server crashes in copy_fields,Item_func_group_concat::add …

…while using json_arrayagg() as a window function.

We don't support JSON_ARRAYAGG and JSON_OBJECTAGG in window functions
yet.
This commit is contained in:
Alexey Botchkov
2020-04-29 10:35:49 +04:00
parent 2e6b21be4a
commit ffc5e00e9c
5 changed files with 38 additions and 2 deletions

View File

@ -740,3 +740,19 @@ DROP TABLE t1;
CREATE TABLE t1 (a INT);
SELECT JSON_ARRAYAGG(a) FROM t1;
DROP TABLE t1;
-- echo #
-- echo # MDEV-21915 Server crashes in copy_fields,Item_func_group_concat::add
-- echo while using json_arrayagg() as a window function
-- echo #
--error ER_NOT_SUPPORTED_YET
select json_arrayagg(a) over () from (select 1 a) t;
--error ER_NOT_SUPPORTED_YET
select json_objectagg(a, b) over () from (select 1 a, 2 b) t;
--echo #
--echo # End of 10.5 tests
--echo #