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/t/partition_pruning.test | |
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/t/partition_pruning.test')
-rw-r--r-- | mysql-test/t/partition_pruning.test | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mysql-test/t/partition_pruning.test b/mysql-test/t/partition_pruning.test index 521ebaef35f..0d6bd344159 100644 --- a/mysql-test/t/partition_pruning.test +++ b/mysql-test/t/partition_pruning.test @@ -230,9 +230,22 @@ create table t1 (a int) partition by hash(a) partitions 2; insert into t1 values (1),(2); explain partitions select * from t1 where a is null; -# this selects both +# this uses both partitions explain partitions select * from t1 where a is not null; drop table t1; +# Join tests +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); + +explain partitions +select * from t1 X, t1 Y where X.a = Y.a and (X.a=1 or X.a=2); + +drop table t1; # No tests for NULLs in RANGE(monotonic_expr()) - they depend on BUG#15447 # being fixed. |