[MDEV-24552] ALTER causes discrepancy in FK information between server and engine, unexpected ER_CANNOT_ADD_FOREIGN Created: 2021-01-09 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Marko Mäkelä |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Possibly related to
In the test case above, 10.2+ versions accept and execute ALTER TABLE, and the column type gets modified. However, after that
Reproducible on 10.2-10.5. |
| Comments |
| Comment by Elena Stepanova [ 2021-01-09 ] | ||||||||
|
Here is another test case. I don't know if it's exactly the same issue, since there is no visible discrepancy here, just the unexpected error, but creating yet another JIRA report about TRUNCATE table with corrupt foreign keys, in addition to this one and
The test case is admittedly not very practical, but on the "positive" side it doesn't require disabling FOREIGN_KEY_CHECKS. |