summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb_bugs/t/commit_index_end_2.test
blob: 68988e2948654c63e36fc84595869f9cd30d0c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# this test crashes because tokudb does not handle index_end after txn commit (MDEV-5396)

source include/have_tokudb.inc;

disable_warnings;
drop table if exists t1,t2;
enable_warnings;

CREATE TABLE t1 (a VARCHAR(8), INDEX(a)) ENGINE=TokuDB; 
INSERT INTO t1 VALUES ('foo'),('bar'); 

CREATE TABLE t2 AS SELECT ( 'qux' ) IN ( SELECT a FROM t1 ) AS f1;

drop table t1,t2;