[MDEV-25255] JSON_TABLE: CREATE TABLE ignores NULL ON ERROR (implicit or explicit) and fails Created: 2021-03-25 Updated: 2021-04-21 Resolved: 2021-03-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Create Table, JSON |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This works and expectedly returns NULL without any errors or warnings (as the implicit behavior is NULL ON ERROR):
However, this fails, even though there isn't, and cannot be, an incorrect value as it should already be NULL-ed by JSON_TABLE:
Same happens even with an explicit NULL ON ERROR:
In MySQL 8.0 it works:
|