[MDEV-29887] Drop of non-existing FK succeeds for temporary table Created: 2022-10-26 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary, Storage Engine - InnoDB |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Description |
|
So, although there is no foreign key fk (or any other), ALTER succeeds. |
| Comments |
| Comment by Elena Stepanova [ 2022-10-26 ] |
|
According to marko,
|
| Comment by Marko Mäkelä [ 2022-10-26 ] |
|
I do not think that temporary tables ever supported FOREIGN KEY constraints in InnoDB, not even when they were actually persistent tables (before InnoDB in MySQL 5.7 and MariaDB 10.2 stopped writing any log for them). |
| Comment by Elena Stepanova [ 2022-10-26 ] |
|
And yet, adding an invalid FK to a temporary InnoDB table causes typical "incorrectly formed" errors (unlike adding the same to a MyISAM table, which truly doesn't care). So if it's unsupported, it's inconsistently unsupported. |