1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

[t:3007], fix some more tests

git-svn-id: file:///svn/mysql/tests/mysql-test@25583 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff
2010-11-12 16:16:55 +00:00
parent 2ba37f3f14
commit a25b64a512
4 changed files with 21 additions and 7 deletions

View File

@@ -1,13 +1,18 @@
# 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;

View File

@@ -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;

View File

@@ -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;
DROP TABLE foo, bar;

View 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;