Details
Description
Hi,
I found that the JSON_QUERY and JSON_KEY_VALUE with a wildcard only return the first item of the JSON data.
This is an example:
SELECT JSON_QUERY('[{"a":1},{"b":2}]', '$[*]'); -- {"a":1} |
SELECT JSON_KEY_VALUE('[{"a":1},{"b":2}]', '$[*]'); -- [{"key": "a", "value": 1}] |
Attachments
Issue Links
- is duplicated by
-
MDEV-39974 Array wildcard in JSON path returns incorrect results when the key is null
-
- Closed
-
- relates to
-
MDEV-15322 JSON_VALUE and JSON_QUERY don't handle wildcards in path
-
- Confirmed
-