Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 10.5(EOL), 11.2(EOL), 11.6(EOL)
-
None
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
- is duplicated by
-
MDEV-36458 JSON_ARRAYAGG result differs when using HAVING or not
-
- Closed
-
- relates to
-
MDEV-23068 Unbalanced brackets in JSON_OBJECTAGG upon HAVING with several conditions
-
- Confirmed
-
-
MDEV-32605 JSON_CONTAINS changes the JSON result
-
- Confirmed
-
-
MDEV-36855 json_arrayagg fails in certain conditions
-
- Confirmed
-