summaryrefslogtreecommitdiff
path: root/mysql-test/r/partition_range.result
diff options
context:
space:
mode:
authormikael/pappa@dator5.(none) <>2006-08-05 16:12:24 -0400
committermikael/pappa@dator5.(none) <>2006-08-05 16:12:24 -0400
commitdb2c48b08d6487df21fe38cd75bcb9426315fb2b (patch)
treea59f5d5184093db3bb05644321a5bdb8a6ea43d1 /mysql-test/r/partition_range.result
parenta4eb61b88cbe4e8f6e43db2ca841fa60ec73467c (diff)
downloadmariadb-git-db2c48b08d6487df21fe38cd75bcb9426315fb2b.tar.gz
BUG#21339: Crash at EXPLAIN PARTITIONS
Caused by missing check for end of partitions in prune range check
Diffstat (limited to 'mysql-test/r/partition_range.result')
-rw-r--r--mysql-test/r/partition_range.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/partition_range.result b/mysql-test/r/partition_range.result
index 9812c80040b..be88d9f6639 100644
--- a/mysql-test/r/partition_range.result
+++ b/mysql-test/r/partition_range.result
@@ -1,4 +1,14 @@
drop table if exists t1;
+create table t1 (a date)
+engine = innodb
+partition by range (year(a))
+(partition p0 values less than (2006),
+partition p1 values less than (2007));
+explain partitions select * from t1
+where a between '2006-01-01' and '2007-06-01';
+id select_type table partitions type possible_keys key key_len ref rows Extra
+1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
+drop table t1;
create table t1 (a int unsigned)
partition by range (a)
(partition pnull values less than (0),