[MDEV-23387] dict_load_foreign() fails to load the table during alter Created: 2020-08-03 Updated: 2020-10-19 Resolved: 2020-10-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Virtual Columns |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.35, 10.3.26, 10.4.16, 10.5.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thirunarayanan Balathandayuthapani | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | rr-profile-analyzed | ||
| Description |
|
The following test case repeats the problem:
InnoDB shouldn't allow foreign key on virtual column. Final alter drops the virtual column Even other test case fails:
The above test case also aborts the server. Error log contain the following: |
| Comments |
| Comment by Thirunarayanan Balathandayuthapani [ 2020-08-05 ] |
|
InnoDB do allow FK on virtual column. Problem exist in commit_inplace_alter_table(), it allows the table to be closed and open it using table name to |
| Comment by Marko Mäkelä [ 2020-10-19 ] |
|
OK to push. |