[MDEV-25148] Unexpected success and result set upon erroneous JSON_VALUE call Created: 2021-03-15 Updated: 2023-04-27 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
So, the provided path refers to two values, of which the function picks up one and returns it. It is a wrong result, the expected result is an error. The standard is very specific about it:
MySQL returns NULL, which implies an error:
|