Commit 2fb98941 authored by Sneha Modi's avatar Sneha Modi

BUG#11754168: Reverting back changes as it is making other tests fail.

parent 9ab8418f
......@@ -6,7 +6,6 @@ binlog.binlog_multi_engine # joro : NDB tests marked as experiment
funcs_1.charset_collation_1 # depends on compile-time decisions
main.func_math @freebsd # Bug#11751977 2010-05-04 alik main.func_math fails on FreeBSD in PB2
main.index_merge_innodb #Bug 11754168 - 45727: Disabled parts of index_merge_innodb due to explain diffs have been enabled
main.lock_multi_bug38499 # Bug#11755645 2009-09-19 alik main.lock_multi_bug38499 times out sporadically
main.outfile_loaddata @solaris # Bug#11755168 2010-01-20 alik Test "outfile_loaddata" fails (reproducible)
main.signal_demo3 @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
......
This diff is collapsed.
......@@ -124,7 +124,6 @@ select count(*) from t1;
if ($index_merge_random_rows_in_EXPLAIN)
{
--sorted_result
--replace_column 9 #
}
explain select count(*) from t1 where
......@@ -135,7 +134,6 @@ select count(*) from t1 where
if ($index_merge_random_rows_in_EXPLAIN)
{
--sorted_result
--replace_column 9 #
}
explain select count(*) from t1 where
......@@ -326,32 +324,32 @@ SELECT COUNT(*) FROM t1 WHERE b = 0 AND a = 0 AND c = 13286427 AND
drop table t1;
# BUG#21277: Index Merge/sort_union: wrong query results
#create table t1
#(
# key1 int not null,
# key2 int not null default 0,
# key3 int not null default 0
#);
create table t1
(
key1 int not null,
key2 int not null default 0,
key3 int not null default 0
);
#insert into t1(key1) values (1),(2),(3),(4),(5),(6),(7),(8);
insert into t1(key1) values (1),(2),(3),(4),(5),(6),(7),(8);
#let $1=7;
#set @d=8;
#while ($1)
#{
# eval insert into t1 (key1) select key1+@d from t1;
# eval set @d=@d*2;
# dec $1;
#}
let $1=7;
set @d=8;
while ($1)
{
eval insert into t1 (key1) select key1+@d from t1;
eval set @d=@d*2;
dec $1;
}
#alter table t1 add index i2(key2);
#alter table t1 add index i3(key3);
#update t1 set key2=key1,key3=key1;
alter table t1 add index i2(key2);
alter table t1 add index i3(key3);
update t1 set key2=key1,key3=key1;
# to test the bug, the following must use "sort_union":
#explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
#select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
#drop table t1;
explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
drop table t1;
--echo #
--echo # Bug#56423: Different count with SELECT and CREATE SELECT queries
......
......@@ -118,12 +118,8 @@ alter table t1 enable keys;
select count(*) from t1;
# One row results tests for cases where a single row matches all conditions
--sorted_result
--replace_column 9 #
explain select key1,key2 from t1 where key1=100 and key2=100;
select key1,key2 from t1 where key1=100 and key2=100;
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
......@@ -132,35 +128,25 @@ insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, -1, -1, 'key1
insert into t1 (key1, key2, key3, key4, filler1) values (-1, -1, 100, 100, 'key4-key3');
# ROR-intersection, not covering
--sorted_result
--replace_column 9 #
explain select key1,key2,filler1 from t1 where key1=100 and key2=100;
select key1,key2,filler1 from t1 where key1=100 and key2=100;
# ROR-intersection, covering
--sorted_result
--replace_column 9 #
explain select key1,key2 from t1 where key1=100 and key2=100;
select key1,key2 from t1 where key1=100 and key2=100;
# ROR-union of ROR-intersections
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
select key1,key2,key3,key4 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
# 3-way ROR-intersection
--sorted_result
--replace_column 9 #
explain select key1,key2,key3 from t1 where key1=100 and key2=100 and key3=100;
select key1,key2,key3 from t1 where key1=100 and key2=100 and key3=100;
# ROR-union(ROR-intersection, ROR-range)
insert into t1 (key1,key2,key3,key4,filler1) values (101,101,101,101, 'key1234-101');
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=101;
select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=101;
......@@ -173,22 +159,16 @@ select key1,key2,filler1 from t1 where key2=100 and key2=200;
# ROR-union(ROR-intersection) with one of ROR-intersection giving empty
# results
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
delete from t1 where key3=100 and key4=100;
# ROR-union with all ROR-intersections giving empty results
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
select key1,key2,key3,key4,filler1 from t1 where key1=100 and key2=100 or key3=100 and key4=100;
# ROR-intersection with empty result
--sorted_result
--replace_column 9 #
explain select key1,key2 from t1 where key1=100 and key2=100;
select key1,key2 from t1 where key1=100 and key2=100;
......@@ -198,22 +178,16 @@ insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, 200, 200,'key
insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, 200, 200,'key1-key2-key3-key4-2');
insert into t1 (key1, key2, key3, key4, filler1) values (100, 100, 200, 200,'key1-key2-key3-key4-3');
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
insert into t1 (key1, key2, key3, key4, filler1) values (-1, -1, -1, 200,'key4');
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
insert into t1 (key1, key2, key3, key4, filler1) values (-1, -1, 200, -1,'key3');
--sorted_result
--replace_column 9 #
explain select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=100) or key4=200;
......@@ -222,16 +196,10 @@ select key1,key2,key3,key4,filler1 from t1 where key3=200 or (key1=100 and key2=
##
# Check that the shortest key is used for ROR-intersection, covering and non-covering.
--sorted_result
--replace_column 9 # 6 #
explain select * from t1 where st_a=1 and st_b=1;
--sorted_result
--replace_column 9 #
explain select st_a,st_b from t1 where st_a=1 and st_b=1;
# Check if "ingore index" syntax works
--sorted_result
--replace_column 9 # 6 #
explain select st_a from t1 ignore index (st_a) where st_a=1 and st_b=1;
# Do many tests
......@@ -240,49 +208,30 @@ explain select st_a from t1 ignore index (st_a) where st_a=1 and st_b=1;
# Different value on 32 and 64 bit
--replace_result sta_swt12a sta_swt21a sta_swt12a, sta_swt12a,
--replace_column 9 #
explain select * from t1 where st_a=1 and swt1a=1 and swt2a=1;
--sorted_result
--replace_column 9 #
explain select * from t1 where st_b=1 and swt1b=1 and swt2b=1;
--sorted_result
--replace_column 9 #
explain select * from t1 where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
--sorted_result
--replace_column 9 #
explain select * from t1 ignore index (sta_swt21a, stb_swt1a_2b)
where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
--sorted_result
--replace_column 9 #
explain select * from t1 ignore index (sta_swt21a, sta_swt12a, stb_swt1a_2b)
where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
--sorted_result
--replace_column 9 #
explain select * from t1 ignore index (sta_swt21a, sta_swt12a, stb_swt1a_2b, stb_swt1b)
where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1 and swt2b=1;
--sorted_result
--replace_column 9 #
explain select * from t1
where st_a=1 and swt1a=1 and swt2a=1 and st_b=1 and swt1b=1;
--sorted_result
--replace_column 9 #
explain select * from t1
where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1;
--sorted_result
--replace_column 9 #
explain select st_a from t1
where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1;
--sorted_result
--replace_column 9 #
explain select st_a from t1
where st_a=1 and swt1a=1 and st_b=1 and swt1b=1 and swt1b=1;
......@@ -321,7 +270,6 @@ select count(a) from t2 where a='AAAAAAAA' and b='AAAAAAAA';
select count(a) from t2 ignore index(a,b) where a='AAAAAAAA' and b='AAAAAAAA';
insert into t2 values ('ab', 'ab', 'uh', 'oh');
--replace_column 9 #
explain select a from t2 where a='ab';
drop table t2;
......
This diff is collapsed.
......@@ -22,9 +22,9 @@ let $index_merge_random_rows_in_EXPLAIN = 1;
let $merge_table_support= 0;
# -- [DISABLED Bug#45727]
--source include/index_merge1.inc
--source include/index_merge_ror.inc
--source include/index_merge2.inc
# --source include/index_merge1.inc
# --source include/index_merge_ror.inc
# --source include/index_merge2.inc
--source include/index_merge_2sweeps.inc
--source include/index_merge_ror_cpk.inc
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