[MDEV-25146] JSON_TABLE: Non-descriptive + wrong error messages upon trying to store array or object Created: 2021-03-15 Updated: 2021-04-21 Resolved: 2021-03-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | 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 |
|
Note: Set to Major because of ER_TABLE_IN_FK_CHECK, otherwise it would have been Trivial to Minor at most. Another case of an expected error but an obscure error message, which can be painfully difficult to analyze with complex JSON documents:
MariaDB responds to it with
and SHOW WARNINGS only makes it worse:
Out of these, ER_JSON_TABLE_ERROR_ON_FIELD is obscure and non-descriptive, but ER_TABLE_IN_FK_CHECK is just wrong. MySQL returns a much more user-friendly message without any unrelated noise:
|