Commit f2af46ff authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:3072], fix up some tests

git-svn-id: file:///svn/mysql/tests/mysql-test@26077 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4ae171db
......@@ -29,14 +29,11 @@ select * from t1 where c > 750;
a b c d
8 80 800 8000
9 90 900 9000
explain select a from t1 where a > 5;
explain select a from t1 where a > 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY b 5 NULL 9 Using where; Using index
select a from t1 where a > 5;
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using index
select a from t1 where a > 8;
a
6
7
8
9
explain select a,b from t1 where b > 30;
id select_type table type possible_keys key key_len ref rows Extra
......@@ -136,16 +133,13 @@ select * from t1 where c > 750;
a b c d e
8 80 800 8000 NULL
9 90 900 9000 NULL
explain select a from t1 where a > 5;
explain select a from t1 where a > 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY b 5 NULL 10 Using where; Using index
select a from t1 where a > 5;
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where; Using index
select a from t1 where a > 8;
a
10
6
7
8
9
10
explain select a,b from t1 where b > 30;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 6 Using where; Using index
......
......@@ -41,7 +41,7 @@ t1 CREATE TABLE `t1` (
insert into t1 value (1,1,1,1),(2,2,2,2),(3,3,3,3),(4,4,4,4),(32,54,12,56);
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL b 4 NULL 5 Using index
1 SIMPLE t1 index NULL PRIMARY 16 NULL 5 Using index
select * from t1;
a b c d
1 1 1 1
......
......@@ -29,14 +29,11 @@ select * from t1 where c > 750;
a b c d
8 80 800 8000
9 90 900 9000
explain select a from t1 where a > 5;
explain select a from t1 where a > 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY b 5 NULL 9 Using where; Using index
select a from t1 where a > 5;
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using index
select a from t1 where a > 8;
a
6
7
8
9
explain select a,b from t1 where b > 30;
id select_type table type possible_keys key key_len ref rows Extra
......@@ -91,14 +88,11 @@ select * from t1 where c > 750;
a b c d
8 80 800 8000
9 90 900 9000
explain select a from t1 where a > 5;
explain select a from t1 where a > 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY b 5 NULL 7 Using where; Using index
select a from t1 where a > 5;
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using index
select a from t1 where a > 8;
a
6
7
8
9
explain select a,b from t1 where b > 30;
id select_type table type possible_keys key key_len ref rows Extra
......
......@@ -29,14 +29,11 @@ select * from t1 where c > 750;
a b c d
8 80 800 8000
9 90 900 9000
explain select a from t1 where a > 5;
explain select a from t1 where a > 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY b 5 NULL 9 Using where; Using index
select a from t1 where a > 5;
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using index
select a from t1 where a > 8;
a
6
7
8
9
explain select a,b from t1 where b > 30;
id select_type table type possible_keys key key_len ref rows Extra
......@@ -84,14 +81,11 @@ select * from t1 where c > 750;
a b c d
8 85 805 8000
9 95 905 9000
explain select a from t1 where a > 5;
explain select a from t1 where a > 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY b 5 NULL 9 Using where; Using index
select a from t1 where a > 5;
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where; Using index
select a from t1 where a > 8;
a
6
7
8
9
explain select a,b from t1 where b > 30;
id select_type table type possible_keys key key_len ref rows Extra
......
......@@ -21,8 +21,8 @@ explain select * from t1 where c > 750;
select * from t1 where c > 750;
#covering indexes
explain select a from t1 where a > 5;
select a from t1 where a > 5;
explain select a from t1 where a > 8;
select a from t1 where a > 8;
explain select a,b from t1 where b > 30;
select a,b from t1 where b > 30;
......@@ -66,8 +66,8 @@ explain select * from t1 where c > 750;
select * from t1 where c > 750;
#covering indexes
explain select a from t1 where a > 5;
select a from t1 where a > 5;
explain select a from t1 where a > 8;
select a from t1 where a > 8;
explain select a,b from t1 where b > 30;
select a,b from t1 where b > 30;
......
......@@ -21,8 +21,8 @@ explain select * from t1 where c > 750;
select * from t1 where c > 750;
#covering indexes
explain select a from t1 where a > 5;
select a from t1 where a > 5;
explain select a from t1 where a > 8;
select a from t1 where a > 8;
explain select a,b from t1 where b > 30;
select a,b from t1 where b > 30;
......@@ -43,8 +43,8 @@ explain select * from t1 where c > 750;
select * from t1 where c > 750;
#covering indexes
explain select a from t1 where a > 5;
select a from t1 where a > 5;
explain select a from t1 where a > 8;
select a from t1 where a > 8;
explain select a,b from t1 where b > 30;
select a,b from t1 where b > 30;
......
......@@ -21,8 +21,8 @@ explain select * from t1 where c > 750;
select * from t1 where c > 750;
#covering indexes
explain select a from t1 where a > 5;
select a from t1 where a > 5;
explain select a from t1 where a > 8;
select a from t1 where a > 8;
explain select a,b from t1 where b > 30;
select a,b from t1 where b > 30;
......@@ -42,8 +42,8 @@ explain select * from t1 where c > 750;
select * from t1 where c > 750;
#covering indexes
explain select a from t1 where a > 5;
select a from t1 where a > 5;
explain select a from t1 where a > 8;
select a from t1 where a > 8;
explain select a,b from t1 where b > 30;
select a,b from t1 where b > 30;
......
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