Commit a25b64a5 authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:3007], fix some more tests

git-svn-id: file:///svn/mysql/tests/mysql-test@25583 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2ba37f3f
# Establish connection conn1 (user = root)
SET STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo;
DROP TABLE IF EXISTS foo, bar;
set session transaction isolation level read committed;
create table foo ( a int, b int, primary key (a));
create table bar (a int);
begin;
insert into foo values (1,1),(2,2),(3,1),(4,3);
set session transaction isolation level read committed;
set session transaction isolation level repeatable read;
begin;
select * from bar;
a
commit;
select * from foo;
a b
commit;
set session transaction isolation level serializable;
DROP TABLE foo;
DROP TABLE foo, bar;
......@@ -16,4 +16,5 @@ truncate table foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
alter table foo drop index a;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
DROP TABLE foo;
......@@ -6,27 +6,31 @@ connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb';
--disable_warnings
DROP TABLE IF EXISTS foo;
DROP TABLE IF EXISTS foo, bar;
--enable_warnings
connection conn1;
set session transaction isolation level read committed;
create table foo ( a int, b int, primary key (a));
create table bar (a int);
begin;
insert into foo values (1,1),(2,2),(3,1),(4,3);
connection default;
set session transaction isolation level read committed;
select * from foo;
set session transaction isolation level repeatable read;
begin;
select * from bar;
connection conn1;
commit;
connection default;
select * from foo;
commit;
disconnect conn1;
connection default;
# Final cleanup.
set session transaction isolation level serializable;
DROP TABLE foo;
\ No newline at end of file
DROP TABLE foo, bar;
\ No newline at end of file
......@@ -26,6 +26,10 @@ truncate table foo;
--error ER_LOCK_WAIT_TIMEOUT
alter table foo drop index a;
connection conn1;
commit;
connection default;
disconnect conn1;
connection default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment