EVOLUTION-MANAGER
Edit File: nested_txn_implicit_commit.test
--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='TokuDB'; --disable_warnings DROP TABLE IF EXISTS t1, t2; --enable_warnings create table t1 (a int, b int, primary key (a)); begin; insert into t1 values (1,10), (2,20); create table t2 (a int); rollback; select * from t1; delete from t1; begin; insert into t1 values (1,10),(2,20); select * from t1; alter table t1 add index (b); rollback; select * From t1; begin; insert into t1 values (3,30); lock tables t1 write; rollback; select * from t1; unlock tables; lock tables t1 write; insert into t1 values (4,40); select * From t1; rollback; select * from t1; --error ER_TABLE_NOT_LOCKED insert into t2 values (1); commit; --error ER_TABLE_NOT_LOCKED insert into t2 values (1); unlock tables; insert into t2 values (1); select * from t1; select * from t2; lock tables t1 write; insert into t1 values (5,50); begin; insert into t2 values (2); select * from t1; select * from t2; rollback; select * from t1; select * from t2; drop table t1,t2;