Skip to content

Commit

Permalink
Added multi-key unique test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lindström committed Mar 11, 2014
1 parent 4e02c2f commit 0fcddbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mysql-test/suite/innodb/r/innodb_force_pk.result
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ ERROR 42000: This table type requires a primary key
SHOW WARNINGS;
Level Code Message
Error 1173 This table type requires a primary key
CREATE TABLE T1(A INTEGER NOT NULL, B INTEGER,
UNIQUE KEY(A,B)) ENGINE=INNODB;
ERROR 42000: This table type requires a primary key
SHOW WARNINGS;
Level Code Message
Error 1173 This table type requires a primary key
CREATE TABLE T1(A INTEGER NOT NULL PRIMARY KEY) ENGINE=INNODB;
SHOW CREATE TABLE T1;
Table Create Table
Expand Down
4 changes: 4 additions & 0 deletions mysql-test/suite/innodb/t/innodb_force_pk.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ SHOW WARNINGS;
-- error 1173
CREATE TABLE T1(A INTEGER UNIQUE KEY) ENGINE=INNODB;
SHOW WARNINGS;
-- error 1173
CREATE TABLE T1(A INTEGER NOT NULL, B INTEGER,
UNIQUE KEY(A,B)) ENGINE=INNODB;
SHOW WARNINGS;
CREATE TABLE T1(A INTEGER NOT NULL PRIMARY KEY) ENGINE=INNODB;
SHOW CREATE TABLE T1;
SHOW WARNINGS;
Expand Down

0 comments on commit 0fcddbc

Please sign in to comment.