[MDEV-10083] Orphan ibd file when playing with foreign keys Created: 2016-05-19 Updated: 2016-06-23 Resolved: 2016-06-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.13 |
| Fix Version/s: | 5.5.51, 10.0.26, 10.1.15 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Valerii Kravchuk | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Sprint: | 10.1.15 |
| Description |
|
The below test case shows that you can create an ibd file without an frm file using sql and foreign keys:
Check https://bugs.mysql.com/bug.php?id=81444 and https://bugs.launchpad.net/percona-server/+bug/1582501 for more details (note that -f flag is NOT needed in case of mysql client from MariaDB, as it continues to execute statements in case of SQL error by default). |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2016-06-22 ] |
|
Also 5.5 effected. |
| Comment by Jan Lindström (Inactive) [ 2016-06-23 ] |
|
For 5.5: commit ef92aaf9ece92c873ae0f3448ab2274c958ba3fe Analysis: row_drop_table_for_mysql did not allow dropping Fix: Allow dropping referenced table even if foreign_key_checks=1 |
| Comment by Jan Lindström (Inactive) [ 2016-06-23 ] |
|
For 10.0: commit 26de9061e8c4462152b4bcff2b9cbb80cde12de1 Merge following commit from 5.5: commit ef92aaf9ece92c873ae0f3448ab2274c958ba3fe Analysis: row_drop_table_for_mysql did not allow dropping Fix: Allow dropping referenced table even if foreign_key_checks=1 |