[MDEV-31478] Inconsistent handling of zero-padded numbers in json Created: 2023-06-14 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2 |
| Fix Version/s: | 10.4, 10.5, 10.6, 11.0, 11.1, 11.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ramesh Sivaraman | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Actual Result
Expected Result
|
| Comments |
| Comment by Sergei Golubchik [ 2023-06-16 ] | ||||||||||||||||||||||||||
|
what's the correct behavior for numbers with leading zeros?
| ||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2023-06-16 ] | ||||||||||||||||||||||||||
|
Some JSON functions print positive integer and skip leading zeros.
And some prints only leading zero in the result set. A ticket has already been created to fix this issue
| ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-06-16 ] | ||||||||||||||||||||||||||
|
then it's not a JSON_KEY_VALUE issue, let's rename it to "inconsistent handling of zero-padded numbers in json" and fix all functions here. And may be not in 11.2 only |