Comments - JSON_ARRAYAGG

2 years, 10 months ago Антон Ковалевич

I have a query example:

with t1 as ( select 0 as a ) select JSON_ARRAYAGG(a) as j from t1 where a > 0

Docs tells j should be NULL Actually j is a string "[NULL]"

 
2 years, 7 months ago Valerii Kravchuk

I see NULL:

MariaDB [(none)]> with t1 as ( select 0 as a ) select version(), JSON_ARRAYAGG(a) as j from t1 where a > 0;
+----------------+------+
| version()      | j    |
+----------------+------+
| 10.6.5-MariaDB | NULL |
+----------------+------+
1 row in set (0.001 sec)
 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.