mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -1229,6 +1229,12 @@ select json_arrayagg(a) over () from (select 1 a) t;
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'JSON_ARRAYAGG() aggregate as window function'
|
||||
select json_objectagg(a, b) over () from (select 1 a, 2 b) t;
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'JSON_OBJECTAGG() aggregate as window function'
|
||||
SELECT JSON_ARRAYAGG(NULL) FROM (SELECT 1 AS t) AS A;
|
||||
JSON_ARRAYAGG(NULL)
|
||||
[null]
|
||||
SELECT JSON_ARRAYAGG("null") FROM (SELECT 1 AS t) AS A;
|
||||
JSON_ARRAYAGG("null")
|
||||
["null"]
|
||||
#
|
||||
# End of 10.5 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user