mariadb/storage/tokudb/mysql-test/tokudb_bugs/r/db801.result
2016-04-26 20:56:25 +02:00

28 lines
816 B
Text

set default_storage_engine=tokudb;
drop table if exists t;
create table t (id int not null primary key, c int not null) engine=tokudb;
insert into t values (1,0);
connect conn1,localhost,root,,;
connection default;
begin;
update t set c=10 where id=1;
connection conn1;
update t set c=100;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
connection default;
rollback;
disconnect conn1;
drop table t;
create table t (id int not null primary key, c int not null) engine=tokudb partition by hash(id) partitions 1;
insert into t values (1,0);
connect conn1,localhost,root,,;
connection default;
begin;
update t set c=10 where id=1;
connection conn1;
update t set c=100;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
connection default;
rollback;
disconnect conn1;
drop table t;