diff options
author | unknown <sergefp@mysql.com> | 2005-12-29 09:32:46 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-12-29 09:32:46 +0300 |
commit | 78d1abbaf9c016843c0880edc60d084f5079d9e2 (patch) | |
tree | aba9eff2e71641b913683311e0707cb6cbbabe3e /mysql-test/r/partition_pruning.result | |
parent | e6bff9a606691c068cc173bc25f8539517e46925 (diff) | |
download | mariadb-git-78d1abbaf9c016843c0880edc60d084f5079d9e2.tar.gz |
WL#2985 "Partition Pruning": post-review fixes: Better comments
mysql-test/r/partition_pruning.result:
WL#2985 "Partition Pruning": more tests
mysql-test/t/partition_pruning.test:
WL#2985 "Partition Pruning": more tests
sql/handler.h:
WL#2985 "Partition Pruning": post-review fixes: comments
Diffstat (limited to 'mysql-test/r/partition_pruning.result')
-rw-r--r-- | mysql-test/r/partition_pruning.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/partition_pruning.result b/mysql-test/r/partition_pruning.result index a503515e4f1..ef431b2c00e 100644 --- a/mysql-test/r/partition_pruning.result +++ b/mysql-test/r/partition_pruning.result @@ -259,3 +259,18 @@ explain partitions select * from t1 where a is not null; id select_type table partitions type possible_keys key key_len ref rows Extra 1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 2 Using where drop table t1; +create table t1 (a int not null, b int not null, key(a), key(b)) +partition by hash(a) partitions 4; +insert into t1 values (1,1),(2,2),(3,3),(4,4); +explain partitions +select * from t1 X, t1 Y +where X.b = Y.b and (X.a=1 or X.a=2) and (Y.a=2 or Y.a=3); +id select_type table partitions type possible_keys key key_len ref rows Extra +1 SIMPLE X p1,p2 ALL a,b NULL NULL NULL 4 Using where +1 SIMPLE Y p2,p3 ref a,b b 4 test.X.b 2 Using where +explain partitions +select * from t1 X, t1 Y where X.a = Y.a and (X.a=1 or X.a=2); +id select_type table partitions type possible_keys key key_len ref rows Extra +1 SIMPLE X p1,p2 ALL a NULL NULL NULL 4 Using where +1 SIMPLE Y p1,p2 ref a a 4 test.X.a 2 +drop table t1; |