Commit a88c19d8 authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:4208], fix a couple of tests

git-svn-id: file:///svn/mysql/tests/mysql-test@37436 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7b5755a8
...@@ -42,9 +42,11 @@ checksum table foo; ...@@ -42,9 +42,11 @@ checksum table foo;
Table Checksum Table Checksum
test.foo 149057747 test.foo 149057747
set session transaction isolation level serializable; set session transaction isolation level serializable;
begin;
select * from foo; select * from foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction ERROR HY000: Lock wait timeout exceeded; try restarting transaction
# should be NULl commit;
# should be NULL
checksum table foo; checksum table foo;
Table Checksum Table Checksum
test.foo NULL test.foo NULL
......
...@@ -11,8 +11,10 @@ insert into foo values (1); ...@@ -11,8 +11,10 @@ insert into foo values (1);
begin; begin;
insert into foo values (2); insert into foo values (2);
set session transaction isolation level serializable; set session transaction isolation level serializable;
begin;
select * from foo; select * from foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
set session transaction isolation level read uncommitted; set session transaction isolation level read uncommitted;
select * from foo; select * from foo;
a a
......
...@@ -34,9 +34,11 @@ select * from foo; ...@@ -34,9 +34,11 @@ select * from foo;
checksum table foo; checksum table foo;
set session transaction isolation level serializable; set session transaction isolation level serializable;
begin;
--error ER_LOCK_WAIT_TIMEOUT --error ER_LOCK_WAIT_TIMEOUT
select * from foo; select * from foo;
--echo # should be NULl commit;
--echo # should be NULL
checksum table foo; checksum table foo;
......
...@@ -19,8 +19,10 @@ insert into foo values (2); ...@@ -19,8 +19,10 @@ insert into foo values (2);
connection conn1; connection conn1;
set session transaction isolation level serializable; set session transaction isolation level serializable;
begin;
--error ER_LOCK_WAIT_TIMEOUT --error ER_LOCK_WAIT_TIMEOUT
select * from foo; select * from foo;
commit;
set session transaction isolation level read uncommitted; set session transaction isolation level read uncommitted;
select * from foo; select * from foo;
......
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