mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-17544 No warning when trying to name a primary key constraint.
Warning added.
This commit is contained in:
@ -1941,3 +1941,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;
|
||||
|
||||
|
Reference in New Issue
Block a user