[MDEV-30287] JSON_SCHEMA_VALID returns incorrect result for type=number Created: 2022-12-21 Updated: 2023-04-25 Resolved: 2023-04-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | N/A |
| Fix Version/s: | 11.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lena Startseva | Assignee: | Rucha Deodhar |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
For the schema with type=number all objects starts with number or minus is validated as correct:
Expected result:
It may be also necessary to generate a warning like here:
Actual result:
|
| Comments |
| Comment by Rucha Deodhar [ 2023-03-17 ] |
|
Patch on tree: https://github.com/MariaDB/server/tree/bb-MDEV-30287-json_schema |
| Comment by Alexey Botchkov [ 2023-04-22 ] |
|
the fix for the MDEV-30689 seems to fix this too. |
| Comment by Rucha Deodhar [ 2023-04-25 ] |
|
Can be fixed by |