[MDEV-16630] Ambiguous error message when check constraint matches table name Created: 2018-06-30 Updated: 2021-03-02 Resolved: 2018-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | None |
| Fix Version/s: | 10.2.17, 10.3.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Anel Husakovic |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
We currently have 2 types of check constraints. Field check constraints and table check constraints. If a column with a check constraint has the same name as a table check constraint for the same table, it is impossible to tell which check constraint failed.
For either of the checks in the above table, the error message is:
|
| Comments |
| Comment by Anel Husakovic [ 2018-07-01 ] |
|
Fixed with 8639e288086247ce39917f4cb55191c8bb5b5a8c |