summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-06-15 16:02:32 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-06-15 16:02:32 +0400
commit0d7fcf2380a8f4140e08207fb603e34833ceace6 (patch)
treefb94fdc710aad9e5d7c08ce87e9078e260eb9d73 /mysql-test
parentb0f423c5d3414aba6c4cd084a2ac0bf87493a25e (diff)
downloadmariadb-git-0d7fcf2380a8f4140e08207fb603e34833ceace6.tar.gz
BUG#598247: partition.test produces valgrind errors in 5.3-based branches
- Testcase
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/partition.result18
-rw-r--r--mysql-test/t/partition.test19
2 files changed, 37 insertions, 0 deletions
diff --git a/mysql-test/r/partition.result b/mysql-test/r/partition.result
index 138264fd4e1..0ac7c8e8770 100644
--- a/mysql-test/r/partition.result
+++ b/mysql-test/r/partition.result
@@ -2178,3 +2178,21 @@ INSERT INTO t1 VALUES(0);
DROP TABLE t1;
SET GLOBAL myisam_use_mmap=default;
End of 5.1 tests
+#
+# BUG#598247: partition.test produces valgrind errors in 5.3-based branches
+#
+CREATE TABLE t1 (
+a INT DEFAULT NULL,
+b DOUBLE DEFAULT NULL,
+c INT DEFAULT NULL,
+KEY idx2(b,a)
+) engine=myisam PARTITION BY HASH(c) PARTITIONS 3;
+INSERT INTO t1 VALUES (6,8,9);
+INSERT INTO t1 VALUES (6,8,10);
+SELECT 1 FROM t1 JOIN t1 AS t2 USING (a);
+1
+1
+1
+1
+1
+drop table t1;
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index c4c17a6d2f1..3c3810b5296 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -2192,3 +2192,22 @@ DROP TABLE t1;
SET GLOBAL myisam_use_mmap=default;
--echo End of 5.1 tests
+
+
+--echo #
+--echo # BUG#598247: partition.test produces valgrind errors in 5.3-based branches
+--echo #
+CREATE TABLE t1 (
+ a INT DEFAULT NULL,
+ b DOUBLE DEFAULT NULL,
+ c INT DEFAULT NULL,
+ KEY idx2(b,a)
+) engine=myisam PARTITION BY HASH(c) PARTITIONS 3;
+
+INSERT INTO t1 VALUES (6,8,9);
+INSERT INTO t1 VALUES (6,8,10);
+
+SELECT 1 FROM t1 JOIN t1 AS t2 USING (a);
+
+drop table t1;
+