summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@mysql.com>2010-10-15 20:13:35 +0500
committerAlexey Botchkov <holyfoot@mysql.com>2010-10-15 20:13:35 +0500
commit8760cec601f6925d6141c6474fbed87c85c693f7 (patch)
treea1092d19baf131d3a71bb50f527840460e51f93b /mysql-test
parent2234783085de0865192c5a30af89cb20643c6322 (diff)
parent6d14cae604d064ec5cd8141bfd05408cc41bf134 (diff)
downloadmariadb-git-8760cec601f6925d6141c6474fbed87c85c693f7.tar.gz
merging.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/partition_innodb.result6
-rw-r--r--mysql-test/t/partition_innodb.test13
2 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/partition_innodb.result b/mysql-test/r/partition_innodb.result
index af4a03bb0ea..5fcb0e796b1 100644
--- a/mysql-test/r/partition_innodb.result
+++ b/mysql-test/r/partition_innodb.result
@@ -413,3 +413,9 @@ a b
3 2003-03-03
COMMIT;
DROP TABLE t1;
+CREATE TABLE t1 (i1 int NOT NULL primary key, f1 int) ENGINE = InnoDB
+PARTITION BY HASH(i1) PARTITIONS 2;
+INSERT INTO t1 VALUES (1,1), (2,2);
+SELECT * FROM t1 WHERE i1 = ( SELECT i1 FROM t1 WHERE f1=0 LIMIT 1 );
+i1 f1
+DROP TABLE t1;
diff --git a/mysql-test/t/partition_innodb.test b/mysql-test/t/partition_innodb.test
index ca668d77199..dc8bcbb4cb9 100644
--- a/mysql-test/t/partition_innodb.test
+++ b/mysql-test/t/partition_innodb.test
@@ -425,3 +425,16 @@ connection default;
SELECT * FROM t1;
COMMIT;
DROP TABLE t1;
+
+#
+# Bug #55146 Assertion `m_part_spec.start_part == m_part_spec.end_part' in index_read_idx_map
+#
+
+CREATE TABLE t1 (i1 int NOT NULL primary key, f1 int) ENGINE = InnoDB
+ PARTITION BY HASH(i1) PARTITIONS 2;
+
+INSERT INTO t1 VALUES (1,1), (2,2);
+
+SELECT * FROM t1 WHERE i1 = ( SELECT i1 FROM t1 WHERE f1=0 LIMIT 1 );
+
+DROP TABLE t1;