Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5.1, 10.5
-
None
-
Win 10
Description
When JSON_ARRAYAGG is used in a view, querying that view results in missing [ and ] brackets.
create or replace view dummy as ( |
|
select json_arrayagg(json_object( |
"type", "permPeriod", |
"id", ID |
)) as JSON_DATA |
|
from TEST |
|
group by COL1 |
)
|
|
select * from dummy |
gives:
{"type": "permPeriod", "id": 7},{"type": "permPeriod", "id": 8}
|
instead of:
[{"type": "permPeriod", "id": 7},{"type": "permPeriod", "id": 8}]
|
Attachments
Issue Links
- relates to
-
MDEV-16620 Add support for JSON_ARRAYAGG and JSON_OBJECTAGG
- Closed
-
MDEV-23004 When using GROUP BY with JSON_ARRAYAGG with joint table, the square brackets are not included
- Closed