diff options
| author | Sergei Golubchik <serg@mariadb.org> | 2021-11-24 16:50:21 +0100 |
|---|---|---|
| committer | Sergei Golubchik <serg@mariadb.org> | 2022-01-26 18:43:05 +0100 |
| commit | a4cac0e07ad7f0909be3f66676e800e20c6b9fa8 (patch) | |
| tree | a9f27dcb01c5e42ee2ea924d1a66899dbcce4545 /mysql-test/main/partition_order.test | |
| parent | 358921ce32203a9a8dd277a5ba7ac177c9e79e53 (diff) | |
| download | mariadb-git-a4cac0e07ad7f0909be3f66676e800e20c6b9fa8.tar.gz | |
MDEV-26938 Support descending indexes internally in InnoDB (server part)
* preserve DESC index property in the parser
* store it in the frm (only for HA_KEY_ALG_BTREE)
* read it from the frm
* show it in SHOW CREATE
* skip DESC indexes in opt_range.cc and opt_sum.cc
* ORDER BY test
This includes a fix of MDEV-27432.
Diffstat (limited to 'mysql-test/main/partition_order.test')
| -rw-r--r-- | mysql-test/main/partition_order.test | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mysql-test/main/partition_order.test b/mysql-test/main/partition_order.test index ad956361d00..f5cd4c25074 100644 --- a/mysql-test/main/partition_order.test +++ b/mysql-test/main/partition_order.test @@ -1,14 +1,9 @@ -#--disable_abort_on_error # # Simple test for the partition storage engine # Focuses on tests of ordered index read # -- source include/have_partition.inc ---disable_warnings -drop table if exists t1; ---enable_warnings - # # Ordered index read, int type # @@ -842,3 +837,12 @@ INSERT into t1 values (1, NULL, NULL), (2, NULL, '10'); select * from t1 where a = 1 order by a desc, b desc; select * from t1 where a = 1 order by b desc; drop table t1; + +--echo # +--echo # MDEV-13756 Implement descending index: KEY (a DESC, b ASC) +--echo # +create table t1 (a int, b int, key(a desc)) partition by hash(a) partitions 4; +insert into t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6); +explain select * from t1 order by a limit 3; +select * from t1 order by a limit 3; +drop table t1; |
