[MDEV-31539] JSON returns incorrect result when character_set_database is set to certain character sets Created: 2023-06-26 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.9, 10.10, 10.11, 11.0, 11.1, 11.2 |
| Fix Version/s: | 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ramesh Sivaraman | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Testcase
Expected result
|
| Comments |
| Comment by Sergei Golubchik [ 2023-06-30 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
is it JSON_OVERLAPS specific issue? all other JSON* functions work correctly? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2023-07-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The JSON functions used for true/false comparisons look good except for the new JSON_SCHEMA_VALID function.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2023-07-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Initially I checked only true/false comparison JSON functions. But there are issues when reading values using some JSON functions when setting character_set_database to ucs2 , some JSON functions give proper warning messages.
Some JSON functions that return warning messages.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2023-07-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Some other character sets also have this issue
|