[MDEV-30689] JSON_SCHEMA_VALID for type=array return 1 for any string that starts with '[' Created: 2023-02-20 Updated: 2023-11-27 Resolved: 2023-05-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | None |
| Fix Version/s: | 11.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lena Startseva | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Case:
In case it is missed closing brace for array, but result is still 1:
Expected result:
Or maybe result+warning The same problem presents for case:
Actual result:
Expected result (result must be NULL):
Also after fix bug the following case should also be tested:
|
| Comments |
| Comment by Rucha Deodhar [ 2023-03-03 ] | ||
|
patch: | ||
| Comment by Lena Startseva [ 2023-03-03 ] | ||
|
rucha174, I don't see in the patch test case for:
this case is different from:
| ||
| Comment by Rucha Deodhar [ 2023-03-03 ] | ||
|
lstartseva thanks for noticing ! Added. | ||
| Comment by Alexey Botchkov [ 2023-04-21 ] | ||
|
see comments to the patch. | ||
| Comment by Alexey Botchkov [ 2023-04-26 ] | ||
|
ok to push. |