diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2020-04-29 10:35:49 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2020-04-29 10:35:49 +0400 |
commit | ffc5e00e9c64d64b773178be4a4750ac1613879c (patch) | |
tree | 29078d5147e5fc9f35efcfb8819cca4320715564 /mysql-test/main/func_json.test | |
parent | 2e6b21be4a8d0bf094da288cadff866f1bb38062 (diff) | |
download | mariadb-git-ffc5e00e9c64d64b773178be4a4750ac1613879c.tar.gz |
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.
Diffstat (limited to 'mysql-test/main/func_json.test')
-rw-r--r-- | mysql-test/main/func_json.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/main/func_json.test b/mysql-test/main/func_json.test index 2c5dbfbd42c..216d51b4c36 100644 --- a/mysql-test/main/func_json.test +++ b/mysql-test/main/func_json.test @@ -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 # + |