Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5, 10.6, 10.11, 11.1(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.9(EOL), 10.10(EOL), 11.0(EOL)
-
None
Description
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
--error ER_CANT_DROP_FIELD_OR_KEY
|
ALTER TABLE t1 DROP FOREIGN KEY x, ALGORITHM=COPY; |
|
# Cleanup
|
DROP TABLE t1; |
10.5 8c0b9880 |
query 'ALTER TABLE t1 DROP FOREIGN KEY x, ALGORITHM=COPY' failed with wrong errno 1025: 'Error on rename of './test/t1' to './test/#sql2-10fa-4' (errno: 152 "Cannot delete a parent row")', instead of 1091...
|
Without ALGORITHM=COPY it fails with ER_CANT_DROP_FIELD_OR_KEY as expected.
There is an ancient upstream bug https://bugs.mysql.com/bug.php?id=14347 which seems related, but I'm not sure it's quite the same.
Attachments
Issue Links
- relates to
-
MDEV-28904 DROP CONSTRAINT ..., ALGORITHM=COPY has no effect
- Stalled
-
MDEV-20480 Obsolete internal parser for FK in InnoDB
- Closed
-
MDEV-22232 Server crashes in rpl_sql_thread_info::cached_charset_compare / wsrep_apply_events
- Closed
- links to