[MDEV-29586] JSON_VALUE and JSON_EXTRACT doesn't handle special characters Created: 2022-09-21 Updated: 2023-08-24 Resolved: 2023-01-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.9.3, 10.9, 10.10 |
| Fix Version/s: | 10.9.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andy Heathershaw | Assignee: | Rucha Deodhar |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | regression | ||
| Environment: |
Ubuntu Server 22.04.1 LTS, MariaDB 10.9 installed from official MariaDB repositories. |
||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
10.9 doesn't seem to be handling special characters in JSON keys in JSON_VALUE and JSON_EXTRACT functions - it returns NULL even when the key is quoted according to the documentation:
This has changed in 10.9 - 10.8 works as expected (I don't have any earlier version to test against.) In 10.8.4:
In 10.9.2 and 10.9.3, the final query returns NULL:
|
| Comments |
| Comment by Alice Sherepa [ 2022-09-21 ] | |
|
Thanks for the report! The problem is with dashes, caused by | |
| Comment by Steven Haigh [ 2022-11-30 ] | |
|
@Alice - Can you please confirm if this is still the case? That report was marked as fixed - however, as I added on the ticket you linked: Given the following query:
The results for different versions of MariaDB are as follows: 10.11-rc --> null | |
| Comment by Alice Sherepa [ 2022-11-30 ] | |
|
CRC, no, the bug is not fixed yet, | |
| Comment by Rucha Deodhar [ 2023-01-06 ] | |
|
Duplicate of: |