Commit bafba788 authored by Rich Prohaska's avatar Rich Prohaska

DB-766 add reproducer

parent 3fbe68e6
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;
# reproducer for DB-766
source include/have_tokudb.inc;
source include/have_partition.inc;
set default_storage_engine=TokuDB;
disable_warnings;
drop table if exists t1;
enable_warnings;
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);
--error ER_DUP_KEY
ALTER TABLE t1 ADD UNIQUE INDEX i1(c1);
drop table t1;
\ No newline at end of file
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