Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
11.4.8
-
None
-
None
-
x86_64 Linux
Description
I am seeing a charset edge case under a very specific set of circumstances.
Related: https://jira.mariadb.org/browse/MDEV-24784 (I can reproduce this bug in server 11.4.8, which is higher than than the versions marked as "fixed" in this issue.)
—
I have minified the test case so it works in a single SELECT statement without creating tables.
- Test case
SELECT
|
JSON_VALUE(JSON_ARRAYAGG('×'), "$[0]") AS working, |
JSON_EXTRACT(JSON_ARRAYAGG('×'), "$[0]") AS broken, |
JSON_ARRAYAGG('×') AS also_broken |
FROM information_schema.engines, |
JSON_TABLE(1, '$' COLUMNS (x FOR ORDINALITY)) j |
GROUP BY engine |
LIMIT 1;
|
- Expected outcome
1. Column one shows something
2. Column two shows the column one thing enclosed in double quotation marks
3. Column three shows the column one thing enclosed in square brackets
- Actual outcome
1. `×` ✅2. `"?"` ❌3. `["?"]` ❌
Attachments
Issue Links
- relates to
-
MDEV-24784 JSON_ARRAYAGG charset issue
-
- Closed
-