mariadb/storage/tokudb/mysql-test/tokudb_bugs/r/db766.result
Sergei Golubchik d9c01e4b4a 5.5 merge
2015-01-21 12:03:02 +01:00

7 lines
281 B
Text

set default_storage_engine=TokuDB;
drop table if exists t1;
CREATE TABLE t1(c1 INT,c2 CHAR)PARTITION BY KEY(c1) PARTITIONS 5;
insert INTO t1 values(1,1),(2,1),(2,2),(2,3);
ALTER TABLE t1 ADD UNIQUE INDEX i1(c1);
ERROR 23000: Can't write; duplicate key in table 't1'
drop table t1;