diff options
author | unknown <mikael@dator5.(none)> | 2006-06-22 10:46:02 -0400 |
---|---|---|
committer | unknown <mikael@dator5.(none)> | 2006-06-22 10:46:02 -0400 |
commit | aa475d48a43094d984cb45c52807de0eab979a82 (patch) | |
tree | 21e389219752ea0d03c521e5d2f93bd3730fc29c /mysql-test/t/partition.test | |
parent | 767cb0b4a6ed04113da94848f20442b84f73d61c (diff) | |
download | mariadb-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.test | 9 |
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 |