MDEV-33927 Wrong error message while altering the table with foreign key relationship
- Alter statement using copy algorithm throws wrong message "Cannot delete rows from table which is parent in a foreign key constraint" even though we expect duplicate key for the index. copy_data_between_tables(): Remove the error condition to throw ER_FK_CANNOT_DELETE_PARENT and make sure that ALTER IGNORE shouldn't allow to break unique of foreign key constraints.
Showing
Please register or sign in to comment