Commit d528b13c authored by unknown's avatar unknown

Added test for violation of uniqueness constraint at create index

parent 1c66e72f
......@@ -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