Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
Description
--source include/have_innodb.inc
|
|
CREATE TEMPORARY TABLE t (a INT, KEY(a)) ENGINE=InnoDB; |
INSERT INTO t VALUES (1); |
ALTER TABLE t DROP FOREIGN KEY fk; |
|
# Cleanup
|
DROP TABLE t; |
10.3 77951dd7 |
CREATE TEMPORARY TABLE t (a INT, KEY(a)) ENGINE=InnoDB; |
INSERT INTO t VALUES (1); |
ALTER TABLE t DROP FOREIGN KEY fk; |
DROP TABLE t; |
So, although there is no foreign key fk (or any other), ALTER succeeds.
Reproducible on all current version lines of MariaDB and on MySQL 5.7. Not reproducible on MySQL 8.0.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.7 [ 24805 ] | |
Fix Version/s | 10.8 [ 26121 ] | |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 10.10 [ 27530 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] | |
Affects Version/s | 10.6 [ 24028 ] | |
Affects Version/s | 10.7 [ 24805 ] | |
Affects Version/s | 10.8 [ 26121 ] | |
Affects Version/s | 10.9 [ 26905 ] | |
Affects Version/s | 10.10 [ 27530 ] | |
Assignee | Oleksandr Byelkin [ sanja ] | |
Description |
{code:sql}
--source include/have_innodb.inc CREATE TEMPORARY TABLE t (a INT, KEY(a)) ENGINE=InnoDB; INSERT INTO t VALUES (1); ALTER TABLE t DROP FOREIGN KEY fk; # Cleanup DROP TABLE t; {code} {code:sql|title=10.3 77951dd7} CREATE TEMPORARY TABLE t (a INT, KEY(a)) ENGINE=InnoDB; INSERT INTO t VALUES (1); ALTER TABLE t DROP FOREIGN KEY fk; DROP TABLE t; {code} So, although there is no foreign key fk (or any other), ALTER succeeds. Reproducible on all current version lines of MariaDB and on MySQL 5.7. Not reproducible on MySQL 8.0. |
|
Labels | upstream-fixed |
Summary | Drop of non-existing FK dropped succeeds on temporary table | Drop of non-existing FK succeeds on temporary table |
Summary | Drop of non-existing FK succeeds on temporary table | Drop of non-existing FK succeeds for temporary table |
Fix Version/s | 10.7 [ 24805 ] |
Fix Version/s | 10.3 [ 22126 ] |
Fix Version/s | 10.8 [ 26121 ] |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 10.10 [ 27530 ] |
Fix Version/s | 10.4 [ 22408 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Aleksey Midenkov [ midenok ] |
According to marko,