mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-22640, MDEV-22449, MDEV-21528 JSON_ARRAYAGG crashes with NULL values.
We have to include NULL in the result which the GOUP_CONCAT doesn't always do. Also converting should be done into another String instance as these can be same.
This commit is contained in:
@ -752,6 +752,9 @@ 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;
|
||||
|
||||
SELECT JSON_ARRAYAGG(NULL) FROM (SELECT 1 AS t) AS A;
|
||||
SELECT JSON_ARRAYAGG("null") FROM (SELECT 1 AS t) AS A;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.5 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user