diff options
Diffstat (limited to 'mysql-test/r/mix2_myisam.result')
-rw-r--r-- | mysql-test/r/mix2_myisam.result | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/r/mix2_myisam.result b/mysql-test/r/mix2_myisam.result index bf706b1445d..25434b71ca2 100644 --- a/mysql-test/r/mix2_myisam.result +++ b/mysql-test/r/mix2_myisam.result @@ -2064,23 +2064,36 @@ delete t1 from t1,t2 where f1=f3 and f4='cc'; select * from t1; f1 f2 drop table t1,t2; +connect a,localhost,root,,; +connect b,localhost,root,,; +connection a; create table t1(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM; insert into t1(a) values (1),(2),(3); commit; +connection b; set autocommit = 0; update t1 set b = 5 where a = 2; commit; +connection a; create trigger t1t before insert on t1 for each row begin set NEW.b = NEW.a * 10 + 5, NEW.c = NEW.a / 10; end | set autocommit = 0; +connection a; insert into t1(a) values (10),(20),(30),(40),(50),(60),(70),(80),(90),(100), (11),(21),(31),(41),(51),(61),(71),(81),(91),(101), (12),(22),(32),(42),(52),(62),(72),(82),(92),(102), (13),(23),(33),(43),(53),(63),(73),(83),(93),(103), (14),(24),(34),(44),(54),(64),(74),(84),(94),(104); +connection b; commit; +connection a; commit; drop trigger t1t; drop table t1; +disconnect a; +disconnect b; +connect a,localhost,root,,; +connect b,localhost,root,,; +connection a; create table t1(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM; create table t2(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM; create table t3(a int not null, b int, c int, d int, primary key(a)) engine=MyISAM; @@ -2113,6 +2126,7 @@ update t3 set b = b + 5 where a = 1; update t4 set b = b + 5 where a = 1; insert into t5(a) values(20); commit; +connection b; set autocommit = 0; insert into t1(a) values(7); insert into t2(a) values(8); @@ -2124,6 +2138,9 @@ drop trigger t2t; drop trigger t3t; drop trigger t4t; drop table t1, t2, t3, t4, t5; +connection default; +disconnect a; +disconnect b; create table t1(a date) engine=MyISAM; create table t2(a date, key(a)) engine=MyISAM; insert into t1 values('2005-10-01'); @@ -2148,20 +2165,29 @@ select ml.* from t1 as ml left join t2 as mm on (mm.id=ml.id) where mm.id is null lock in share mode; id f_id f drop table t1,t2; +connect a,localhost,root,,; +connect b,localhost,root,,; +connection a; create table t1(a int not null, b int, primary key(a)) engine=MyISAM; insert into t1 values(1,1),(2,2),(3,1),(4,2),(5,1),(6,2),(7,3); commit; set autocommit = 0; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; update t1 set b = 5 where b = 1; +connection b; set autocommit = 0; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; select * from t1 where a = 7 and b = 3 for update; a b 7 3 +connection a; commit; +connection b; commit; drop table t1; +connection default; +disconnect a; +disconnect b; CREATE TABLE t1 ( a int ) ENGINE=MyISAM; BEGIN; INSERT INTO t1 VALUES (1); |