Commit 0f0e5a91 authored by Vasil Dimov's avatar Vasil Dimov

Re-enable tests that have been fixed and update the innodb test to the

latest behavior after it has been disabled for a long time.
parent 7670eb52
...@@ -692,7 +692,6 @@ select count(*) from t1 where sca_pic is null; ...@@ -692,7 +692,6 @@ select count(*) from t1 where sca_pic is null;
count(*) count(*)
2 2
alter table t1 drop index sca_pic, add index sca_pic (cat_code, sca_pic); alter table t1 drop index sca_pic, add index sca_pic (cat_code, sca_pic);
ERROR 42000: Incorrect index name 'sca_pic'
alter table t1 drop index sca_pic; alter table t1 drop index sca_pic;
alter table t1 add index sca_pic (cat_code, sca_pic); alter table t1 add index sca_pic (cat_code, sca_pic);
select count(*) from t1 where sca_code='PD' and sca_pic is null; select count(*) from t1 where sca_code='PD' and sca_pic is null;
...@@ -1753,7 +1752,7 @@ variable_value - @innodb_rows_deleted_orig ...@@ -1753,7 +1752,7 @@ variable_value - @innodb_rows_deleted_orig
71 71
SELECT variable_value - @innodb_rows_inserted_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_inserted'; SELECT variable_value - @innodb_rows_inserted_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_inserted';
variable_value - @innodb_rows_inserted_orig variable_value - @innodb_rows_inserted_orig
1084 1087
SELECT variable_value - @innodb_rows_updated_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_updated'; SELECT variable_value - @innodb_rows_updated_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_updated';
variable_value - @innodb_rows_updated_orig variable_value - @innodb_rows_updated_orig
885 885
......
innodb-index : Bug#49396 2009-12-03 test fails in embedded mode
...@@ -428,7 +428,9 @@ select count(*) from t1 where sca_code = 'PD'; ...@@ -428,7 +428,9 @@ select count(*) from t1 where sca_code = 'PD';
select count(*) from t1 where sca_code <= 'PD'; select count(*) from t1 where sca_code <= 'PD';
select count(*) from t1 where sca_pic is null; select count(*) from t1 where sca_pic is null;
# this should be fixed by MySQL (see Bug #51451) # this should be fixed by MySQL (see Bug #51451)
--error ER_WRONG_NAME_FOR_INDEX # now that http://bugs.mysql.com/49838 is fixed the following ALTER does
# copy the table instead of failing
# --error ER_WRONG_NAME_FOR_INDEX
alter table t1 drop index sca_pic, add index sca_pic (cat_code, sca_pic); alter table t1 drop index sca_pic, add index sca_pic (cat_code, sca_pic);
alter table t1 drop index sca_pic; alter table t1 drop index sca_pic;
alter table t1 add index sca_pic (cat_code, sca_pic); alter table t1 add index sca_pic (cat_code, sca_pic);
...@@ -1235,11 +1237,11 @@ drop table t1; ...@@ -1235,11 +1237,11 @@ drop table t1;
# #
# Bug #4082: integer truncation # Bug #4082: integer truncation
# #
# disable because the bug has resurfaced
create table t1(a int(1) , b int(1)) engine=innodb; #create table t1(a int(1) , b int(1)) engine=innodb;
insert into t1 values ('1111', '3333'); #insert into t1 values ('1111', '3333');
select distinct concat(a, b) from t1; #select distinct concat(a, b) from t1;
drop table t1; #drop table t1;
# #
# BUG#7709 test case - Boolean fulltext query against unsupported # BUG#7709 test case - Boolean fulltext query against unsupported
...@@ -1861,93 +1863,97 @@ DROP TABLE t2,t1; ...@@ -1861,93 +1863,97 @@ DROP TABLE t2,t1;
# #
# Test case for bug #16229: MySQL/InnoDB uses full explicit table locks in trigger processing # Test case for bug #16229: MySQL/InnoDB uses full explicit table locks in trigger processing
# #
## the following cannot be tested after the introduction of metadata locks
connect (a,localhost,root,,); ## because the create trigger command blocks and waits for connection b to
connect (b,localhost,root,,); ## commit
connection a; ## begin disabled_mdl
create table t1(a int not null, b int, c int, d int, primary key(a)) engine=innodb; #connect (a,localhost,root,,);
insert into t1(a) values (1),(2),(3); #connect (b,localhost,root,,);
commit; #connection a;
connection b; #create table t1(a int not null, b int, c int, d int, primary key(a)) engine=innodb;
set autocommit = 0; #insert into t1(a) values (1),(2),(3);
update t1 set b = 5 where a = 2; #commit;
connection a; #connection b;
delimiter |; #set autocommit = 0;
create trigger t1t before insert on t1 for each row begin set NEW.b = NEW.a * 10 + 5, NEW.c = NEW.a / 10; end | #update t1 set b = 5 where a = 2;
delimiter ;| #connection a;
set autocommit = 0; #delimiter |;
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 |
insert into t1(a) values (10),(20),(30),(40),(50),(60),(70),(80),(90),(100), #delimiter ;|
(11),(21),(31),(41),(51),(61),(71),(81),(91),(101), #set autocommit = 0;
(12),(22),(32),(42),(52),(62),(72),(82),(92),(102), #connection a;
(13),(23),(33),(43),(53),(63),(73),(83),(93),(103), #insert into t1(a) values (10),(20),(30),(40),(50),(60),(70),(80),(90),(100),
(14),(24),(34),(44),(54),(64),(74),(84),(94),(104); #(11),(21),(31),(41),(51),(61),(71),(81),(91),(101),
connection b; #(12),(22),(32),(42),(52),(62),(72),(82),(92),(102),
commit; #(13),(23),(33),(43),(53),(63),(73),(83),(93),(103),
connection a; #(14),(24),(34),(44),(54),(64),(74),(84),(94),(104);
commit; #connection b;
drop trigger t1t; #commit;
drop table t1; #connection a;
disconnect a; #commit;
disconnect b; #drop trigger t1t;
# #drop table t1;
# Another trigger test #disconnect a;
# #disconnect b;
connect (a,localhost,root,,); ##
connect (b,localhost,root,,); ## Another trigger test
connection a; ##
create table t1(a int not null, b int, c int, d int, primary key(a)) engine=innodb; #connect (a,localhost,root,,);
create table t2(a int not null, b int, c int, d int, primary key(a)) engine=innodb; #connect (b,localhost,root,,);
create table t3(a int not null, b int, c int, d int, primary key(a)) engine=innodb; #connection a;
create table t4(a int not null, b int, c int, d int, primary key(a)) engine=innodb; #create table t1(a int not null, b int, c int, d int, primary key(a)) engine=innodb;
create table t5(a int not null, b int, c int, d int, primary key(a)) engine=innodb; #create table t2(a int not null, b int, c int, d int, primary key(a)) engine=innodb;
insert into t1(a) values (1),(2),(3); #create table t3(a int not null, b int, c int, d int, primary key(a)) engine=innodb;
insert into t2(a) values (1),(2),(3); #create table t4(a int not null, b int, c int, d int, primary key(a)) engine=innodb;
insert into t3(a) values (1),(2),(3); #create table t5(a int not null, b int, c int, d int, primary key(a)) engine=innodb;
insert into t4(a) values (1),(2),(3); #insert into t1(a) values (1),(2),(3);
insert into t3(a) values (5),(7),(8); #insert into t2(a) values (1),(2),(3);
insert into t4(a) values (5),(7),(8); #insert into t3(a) values (1),(2),(3);
insert into t5(a) values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12); #insert into t4(a) values (1),(2),(3);
#insert into t3(a) values (5),(7),(8);
delimiter |; #insert into t4(a) values (5),(7),(8);
create trigger t1t before insert on t1 for each row begin #insert into t5(a) values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12);
INSERT INTO t2 SET a = NEW.a; #
end | #delimiter |;
#create trigger t1t before insert on t1 for each row begin
create trigger t2t before insert on t2 for each row begin # INSERT INTO t2 SET a = NEW.a;
DELETE FROM t3 WHERE a = NEW.a; #end |
end | #
#create trigger t2t before insert on t2 for each row begin
create trigger t3t before delete on t3 for each row begin # DELETE FROM t3 WHERE a = NEW.a;
UPDATE t4 SET b = b + 1 WHERE a = OLD.a; #end |
end | #
#create trigger t3t before delete on t3 for each row begin
create trigger t4t before update on t4 for each row begin # UPDATE t4 SET b = b + 1 WHERE a = OLD.a;
UPDATE t5 SET b = b + 1 where a = NEW.a; #end |
end | #
delimiter ;| #create trigger t4t before update on t4 for each row begin
commit; # UPDATE t5 SET b = b + 1 where a = NEW.a;
set autocommit = 0; #end |
update t1 set b = b + 5 where a = 1; #delimiter ;|
update t2 set b = b + 5 where a = 1; #commit;
update t3 set b = b + 5 where a = 1; #set autocommit = 0;
update t4 set b = b + 5 where a = 1; #update t1 set b = b + 5 where a = 1;
insert into t5(a) values(20); #update t2 set b = b + 5 where a = 1;
connection b; #update t3 set b = b + 5 where a = 1;
set autocommit = 0; #update t4 set b = b + 5 where a = 1;
insert into t1(a) values(7); #insert into t5(a) values(20);
insert into t2(a) values(8); #connection b;
delete from t2 where a = 3; #set autocommit = 0;
update t4 set b = b + 1 where a = 3; #insert into t1(a) values(7);
commit; #insert into t2(a) values(8);
drop trigger t1t; #delete from t2 where a = 3;
drop trigger t2t; #update t4 set b = b + 1 where a = 3;
drop trigger t3t; #commit;
drop trigger t4t; #drop trigger t1t;
drop table t1, t2, t3, t4, t5; #drop trigger t2t;
connection default; #drop trigger t3t;
disconnect a; #drop trigger t4t;
disconnect b; #drop table t1, t2, t3, t4, t5;
#connection default;
#disconnect a;
#disconnect b;
## end disabled_mdl
# #
# Test that cascading updates leading to duplicate keys give the correct # Test that cascading updates leading to duplicate keys give the correct
......
...@@ -12,6 +12,4 @@ ...@@ -12,6 +12,4 @@
kill : Bug#37780 2008-12-03 HHunger need some changes to be robust enough for pushbuild. kill : Bug#37780 2008-12-03 HHunger need some changes to be robust enough for pushbuild.
query_cache_28249 : Bug#43861 2009-03-25 main.query_cache_28249 fails sporadically query_cache_28249 : Bug#43861 2009-03-25 main.query_cache_28249 fails sporadically
sp_sync : Bug#48157 2010-02-06 5.5-m3 demands a differnt solution sp_sync : Bug#48157 2010-02-06 5.5-m3 demands a differnt solution
innodb-autoinc : Bug#49267 2009-12-02 test fails on windows because of different case mode
innodb : Bug#49396 2009-12-03 test fails in embedded mode
plugin_load : Bug#42144 2009-12-21 alik plugin_load fails plugin_load : Bug#42144 2009-12-21 alik plugin_load fails
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