summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_hash.test
diff options
context:
space:
mode:
authorunknown <mikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-04-10 10:44:47 -0400
committerunknown <mikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-04-10 10:44:47 -0400
commit8a43d4afeec624a0cc22ec4ef3df757dc4e92ec1 (patch)
tree37f9f87885cd54632900cf18ba18863c89e8d6c5 /mysql-test/t/partition_hash.test
parenta514095a5d306fead8d22d03a39c83db18d98ef8 (diff)
downloadmariadb-git-8a43d4afeec624a0cc22ec4ef3df757dc4e92ec1.tar.gz
BUG#18423: Added test case for this bug that was already fixed (was issue with hash partitions not showing all rows in BETWEEN range
Added test case for bug 18423 mysql-test/r/partition_hash.result: Added test case for bug 18423 mysql-test/t/partition_hash.test: Added test case for bug 18423
Diffstat (limited to 'mysql-test/t/partition_hash.test')
-rw-r--r--mysql-test/t/partition_hash.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/partition_hash.test b/mysql-test/t/partition_hash.test
index 75a36713694..8494de98371 100644
--- a/mysql-test/t/partition_hash.test
+++ b/mysql-test/t/partition_hash.test
@@ -90,3 +90,22 @@ drop table t1;
CREATE TABLE t1 (s1 int) ENGINE=BLACKHOLE PARTITION BY HASH (s1);
INSERT INTO t1 VALUES (0);
DROP TABLE t1;
+
+#
+# BUG 18423 Hash partitioning can lose rows in some queries
+#
+create table t1 (c1 int DEFAULT NULL,
+ c2 varchar (30) DEFAULT NULL,
+ c3 date DEFAULT NULL)
+engine = myisam
+partition by hash (to_days(c3))
+partitions 12;
+
+insert into t1 values
+(136,'abc','2002-01-05'),(142,'abc','2002-02-14'),(162,'abc','2002-06-28'),
+(182,'abc','2002-11-09'),(158,'abc','2002-06-01'),(184,'abc','2002-11-22');
+select * from t1;
+select * from t1 where c3 between '2002-01-01' and '2002-12-31';
+
+drop table t1;
+