diff options
author | unknown <mikael/pappa@dator5.(none)> | 2006-09-30 17:38:15 -0400 |
---|---|---|
committer | unknown <mikael/pappa@dator5.(none)> | 2006-09-30 17:38:15 -0400 |
commit | 417c38db9cf5d94409cbc50f4e2b87345a915e58 (patch) | |
tree | 1cb1ca34559e834f40b5625962fae0569aa7a1f5 /mysql-test/t/partition_hash.test | |
parent | dc9613ca36c5cf45d43b806eccf1e7368ad076b1 (diff) | |
download | mariadb-git-417c38db9cf5d94409cbc50f4e2b87345a915e58.tar.gz |
BUG#18198: Partition function handling
Review fixes
mysql-test/r/partition_range.result:
New test cases
mysql-test/t/partition_hash.test:
New test cases
mysql-test/t/partition_range.test:
New test cases
sql/item.h:
Review fixes
sql/partition_info.cc:
Review fixes
sql/sql_partition.cc:
Review fixes
Diffstat (limited to 'mysql-test/t/partition_hash.test')
-rw-r--r-- | mysql-test/t/partition_hash.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/partition_hash.test b/mysql-test/t/partition_hash.test index 3304f30fb1a..d3f1a5f4892 100644 --- a/mysql-test/t/partition_hash.test +++ b/mysql-test/t/partition_hash.test @@ -10,6 +10,18 @@ drop table if exists t1; --enable_warnings # +# BUG 18198: Partition functions handling +# +create table t1 (a varchar(10) charset latin1 collate latin1_bin) +partition by hash(length(a)) +partitions 10; +insert into t1 values (''),(' '),('a'),('a '),('a '); +explain partitions select * from t1 where a='a '; +explain partitions select * from t1 where a='a'; +explain partitions select * from t1 where a='a ' OR a='a'; +drop table t1; + +# # More partition pruning tests, especially on interval walking # create table t1 (a int unsigned) |