mariadb/mysql-test/suite/tokudb.add_index/t/add_index_16.test
Rich Prohaska 09ec3e6d9f #4521 move add_index tests to common mysql test directory refs[t:4521]
git-svn-id: file:///svn/mysql/tests/mysql-test@40869 c7de825b-a66e-492c-adef-691d508d4ae1
2012-03-14 19:17:46 +00:00

32 lines
640 B
Text

#--source include/have_tokudb.inc
SET STORAGE_ENGINE='tokudb';
#
# Bug #22169: Crash with count(distinct)
#
--echo *** Bug #22169 ***
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int, key (z), key(x), key(t));
--disable_query_log
let $1 = 10;
SET @length = 10;
SET @a=1;
while ($1)
{
SET @b=@length-@a;
SET @c = @b + @b;
INSERT INTO t1 VALUES (@a, @b,@c,10*@a,100*@a,1000*@a,2*@a,3*@a,4*@a);
SET @a=@a+1;
dec $1;
}
insert into t1 values (5,52,18,5,5,5,2,5,5);
--error ER_DUP_KEY
create unique index foo on t1 (c,r);
DROP TABLE t1;