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) # Establish connection conn1 (user = root)
SET STORAGE_ENGINE = 'tokudb'; SET STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo, bar;
set session transaction isolation level read committed; set session transaction isolation level read committed;
create table foo ( a int, b int, primary key (a)); create table foo ( a int, b int, primary key (a));
create table bar (a int);
begin; begin;
insert into foo values (1,1),(2,2),(3,1),(4,3); 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; select * from foo;
a b a b
commit; commit;
set session transaction isolation level serializable; set session transaction isolation level serializable;
DROP TABLE foo; DROP TABLE foo, bar;
...@@ -16,4 +16,5 @@ truncate table foo; ...@@ -16,4 +16,5 @@ truncate table foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction ERROR HY000: Lock wait timeout exceeded; try restarting transaction
alter table foo drop index a; alter table foo drop index a;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
DROP TABLE foo; DROP TABLE foo;
...@@ -6,27 +6,31 @@ connect (conn1,localhost,root,,); ...@@ -6,27 +6,31 @@ connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo, bar;
--enable_warnings --enable_warnings
connection conn1; connection conn1;
set session transaction isolation level read committed; set session transaction isolation level read committed;
create table foo ( a int, b int, primary key (a)); create table foo ( a int, b int, primary key (a));
create table bar (a int);
begin; begin;
insert into foo values (1,1),(2,2),(3,1),(4,3); insert into foo values (1,1),(2,2),(3,1),(4,3);
connection default; connection default;
set session transaction isolation level read committed; set session transaction isolation level repeatable read;
select * from foo; begin;
select * from bar;
connection conn1; connection conn1;
commit; commit;
connection default; connection default;
select * from foo;
commit;
disconnect conn1; disconnect conn1;
connection default; connection default;
# Final cleanup. # Final cleanup.
set session transaction isolation level serializable; set session transaction isolation level serializable;
DROP TABLE foo; DROP TABLE foo, bar;
\ No newline at end of file \ No newline at end of file
...@@ -26,6 +26,10 @@ truncate table foo; ...@@ -26,6 +26,10 @@ truncate table foo;
--error ER_LOCK_WAIT_TIMEOUT --error ER_LOCK_WAIT_TIMEOUT
alter table foo drop index a; alter table foo drop index a;
connection conn1;
commit;
connection default;
disconnect conn1; disconnect conn1;
connection default; 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