Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
11.8.1, 10.5, 10.6, 10.11, 11.4, 11.8
Description
Run the following statements, in which the first CREATE TABLE is expected to fail. However, it does not.
CREATE TABLE t1 (c1 VARCHAR(0), PRIMARY KEY (c1)); -- expected to fail |
CREATE TABLE t1 (c1 VARCHAR(0) PRIMARY KEY); -- The storage engine InnoDB can't index column `c1` |
Attachments
Issue Links
- is caused by
-
MDEV-33658 Cannot add a foreign key on a table with a long UNIQUE multi-column index, that contains a foreign key as a prefix.
-
- Closed
-