Details
Description
CREATE TABLE t1 (a INT, b VARCHAR(10)); |
INSERT INTO t1 VALUES (1,"foo"), (2,"bar"); |
 |
SELECT a, JSON_ARRAYAGG(b) as j FROM t1 GROUP BY a HAVING j = '["foo"]'; |
Actual result, 10.5 baca526555 |
MariaDB [test]> SELECT a, JSON_ARRAYAGG(b) as j FROM t1 GROUP BY a HAVING j = '["foo"]'; |
+------+-----------+ |
| a | j |
|
+------+-----------+ |
| 1 | [["foo"]] | |
+------+-----------+ |
1 row in set (0.002 sec) |
Attachments
Issue Links
- relates to
-
MDEV-23068 Unbalanced brackets in JSON_OBJECTAGG upon HAVING with several conditions
- Confirmed
-
MDEV-32605 JSON_CONTAINS changes the JSON result
- Confirmed