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

MDEV-22844 JSON_ARRAYAGG is limited by group_concat_max_len.

Warning message and function result fixed
This commit is contained in:
Alexey Botchkov
2020-06-15 22:51:21 +04:00
parent 30d41c8102
commit 6c573a9146
7 changed files with 77 additions and 21 deletions

View File

@ -812,6 +812,14 @@ SELECT JSON_ARRAYAGG(a ORDER BY a DESC) FROM t1;
SELECT JSON_ARRAYAGG(a ORDER BY a ASC) FROM t1;
DROP TABLE t1;
set group_concat_max_len=64;
create table t1 (a varchar(254));
insert into t1 values (concat('x64-', repeat('a', 60)));
insert into t1 values (concat('x64-', repeat('b', 60))); insert into t1 values (concat('x64-', repeat('c', 60)));
select json_arrayagg(a) from t1;
drop table t1;
SET group_concat_max_len= default;
--echo #
--echo # End of 10.5 tests
--echo #