summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition.test
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2010-03-26 14:21:10 +0400
committerSergey Vojtovich <svoj@sun.com>2010-03-26 14:21:10 +0400
commit3569fe776fbaf0a750b054b0684d37d7cefeaa94 (patch)
tree07a1acfcb5224d388cb27c513fab6aa16802abf8 /mysql-test/t/partition.test
parentbded6a7fe32e4085cd860f65272bf0b90b89741f (diff)
parentb602127bf0225b7a33b44c1d7c7e1f06f8f4dee7 (diff)
downloadmariadb-git-3569fe776fbaf0a750b054b0684d37d7cefeaa94.tar.gz
Merge fix for BUG51868 to mysql-5.1-bugteam.
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r--mysql-test/t/partition.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index 0cbe389dadd..22124cc1847 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -2081,4 +2081,17 @@ INSERT INTO t1 VALUES (6,8,10);
SELECT 1 FROM t1 JOIN t1 AS t2 USING (a) FOR UPDATE;
DROP TABLE t1;
+
+--echo #
+--echo # BUG#51868 - crash with myisam_use_mmap and partitioned myisam tables
+--echo #
+SET GLOBAL myisam_use_mmap=1;
+CREATE TABLE t1(a INT) PARTITION BY HASH(a) PARTITIONS 1;
+INSERT INTO t1 VALUES(0);
+FLUSH TABLE t1;
+TRUNCATE TABLE t1;
+INSERT INTO t1 VALUES(0);
+DROP TABLE t1;
+SET GLOBAL myisam_use_mmap=default;
+
--echo End of 5.1 tests