summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition.test
diff options
context:
space:
mode:
authorunknown <mikael@dator5.(none)>2006-06-22 10:46:02 -0400
committerunknown <mikael@dator5.(none)>2006-06-22 10:46:02 -0400
commitaa475d48a43094d984cb45c52807de0eab979a82 (patch)
tree21e389219752ea0d03c521e5d2f93bd3730fc29c /mysql-test/t/partition.test
parent767cb0b4a6ed04113da94848f20442b84f73d61c (diff)
downloadmariadb-git-aa475d48a43094d984cb45c52807de0eab979a82.tar.gz
BUG#20583: index_last causes crash when performed on single partition
mysql-test/r/partition.result: New test case mysql-test/t/partition.test: New test case sql/ha_partition.cc: Ensure index_last always uses ordered index scan
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r--mysql-test/t/partition.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index f62bb2dcd01..758a551cc95 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -1199,4 +1199,13 @@ alter table t1 drop partition p2;
use test;
drop database db99;
+#
+# Bug 20583 Partitions: Crash using index_last
+#
+create table t1 (a int, index(a))
+partition by hash(a);
+insert into t1 values (1),(2);
+select * from t1 ORDER BY a DESC;
+drop table t1;
+
--echo End of 5.1 tests