Commit 63106c06 authored by mskold@mysql.com's avatar mskold@mysql.com

Added test for violation of uniqueness constraint at create index

parent cb696feb
......@@ -45,6 +45,8 @@ a b c
8 2 3
alter table t1 drop index ib;
insert into t1 values(1, 2, 3);
create unique index ib on t1(b);
ERROR 23000: Can't write, because of unique constraint, to table 't1'
drop table t1;
CREATE TABLE t1 (
a int unsigned NOT NULL PRIMARY KEY,
......
......@@ -32,8 +32,8 @@ select * from t1 order by a;
alter table t1 drop index ib;
insert into t1 values(1, 2, 3);
# Bug# #18129
#--error 1169
#create unique index ib on t1(b);
--error 1169
create unique index ib on t1(b);
drop table t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment