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

MDEV-22837 JSON_ARRAYAGG and JSON_OBJECTAGG treat JSON arguments as text.

Item_field::is_json_value() implemented.
This commit is contained in:
Alexey Botchkov
2020-06-15 23:21:29 +04:00
parent 6c573a9146
commit e290e5a75d
6 changed files with 27 additions and 1 deletions

View File

@ -820,6 +820,12 @@ select json_arrayagg(a) from t1;
drop table t1;
SET group_concat_max_len= default;
create table t1 (col1 json);
insert into t1 values('{"color":"red", "size":1}' );
insert into t1 values('{"color":"blue", "size":2}' );
select JSON_ARRAYAGG(col1) from t1;
drop table t1;
--echo #
--echo # End of 10.5 tests
--echo #