mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
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.
This commit is contained in:
@@ -290,9 +290,9 @@ class Key_part_spec :public Sql_alloc {
|
||||
public:
|
||||
LEX_CSTRING field_name;
|
||||
uint length;
|
||||
bool generated;
|
||||
bool generated, asc;
|
||||
Key_part_spec(const LEX_CSTRING *name, uint len, bool gen= false)
|
||||
: field_name(*name), length(len), generated(gen)
|
||||
: field_name(*name), length(len), generated(gen), asc(1)
|
||||
{}
|
||||
bool operator==(const Key_part_spec& other) const;
|
||||
/**
|
||||
|
Reference in New Issue
Block a user