mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
2f83aed670
git-svn-id: file:///svn/mysql/tests/mysql-test@55030 c7de825b-a66e-492c-adef-691d508d4ae1
41 lines
657 B
Text
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;
|
|
|