diff options
Diffstat (limited to 'mysql-test/main/create.test')
-rw-r--r-- | mysql-test/main/create.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/main/create.test b/mysql-test/main/create.test index 4bf6ce99504..8f7b06f5281 100644 --- a/mysql-test/main/create.test +++ b/mysql-test/main/create.test @@ -1864,3 +1864,10 @@ create table t1; # create table t1 (i int, j int, key(i), key(i)) as select 1 as i, 2 as j; drop table t1; + +# +# MDEV-17544 No warning when trying to name a primary key constraint. +# +CREATE TABLE t1 ( id1 INT, id2 INT, CONSTRAINT `foo` PRIMARY KEY (id1), CONSTRAINT `bar` UNIQUE KEY(id2)); +DROP TABLE t1; + |