mariadb/mysql-test/suite/tokudb/t/fast_update_deadlock.test
Rich Prohaska 2f83aed670 refs #6440 move fast update tests
git-svn-id: file:///svn/mysql/tests/mysql-test@55030 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-03 14:23:31 +00:00

41 lines
657 B
Text

source include/have_tokudb.inc;
disable_warnings;
drop table if exists t;
enable_warnings;
set default_storage_engine='tokudb';
create table t (id bigint primary key, b bigint not null default 0);
insert into t (id) values (1),(2);
connect (conn1,localhost,root,,);
connection default;
begin;
update noar t set b=b+1 where id=1;
connection conn1;
begin;
update noar t set b=b-1 where id=2;
connection default;
send update noar t set b=b+1 where id=2;
connection conn1;
sleep 1;
error 1205,1213;
update noar t set b=b-1 where id=1;
rollback;
connection default;
reap;
commit;
connection default;
disconnect conn1;
select * from t;
drop table t;