diff options
author | Sergey Petrunia <sergefp@mysql.com> | 2008-08-25 21:18:22 +0400 |
---|---|---|
committer | Sergey Petrunia <sergefp@mysql.com> | 2008-08-25 21:18:22 +0400 |
commit | 6df6aeca4c43a8751c14a75a7880b173176d1d6a (patch) | |
tree | c34fc11aced1c2647a3268d9ee1fca4142350026 /sql | |
parent | d2541eac97aa9be4fc0b33a925e2f64c5bcafad6 (diff) | |
parent | c770161ae80ba1d299dc8c7f14d214c379466fd5 (diff) | |
download | mariadb-git-6df6aeca4c43a8751c14a75a7880b173176d1d6a.tar.gz |
Merge BUG#36639 into 5.1
Diffstat (limited to 'sql')
-rw-r--r-- | sql/opt_range.cc | 7 | ||||
-rw-r--r-- | sql/opt_range.h | 9 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index d0ca4ea7b23..28ee8af0699 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -8564,6 +8564,13 @@ QUICK_SELECT_DESC::QUICK_SELECT_DESC(QUICK_RANGE_SELECT *q, used_key_parts (used_key_parts_arg) { QUICK_RANGE *r; + /* + Use default MRR implementation for reverse scans. No table engine + currently can do an MRR scan with output in reverse index order. + */ + multi_range_length= 0; + multi_range= NULL; + multi_range_buff= NULL; QUICK_RANGE **pr= (QUICK_RANGE**)ranges.buffer; QUICK_RANGE **end_range= pr + ranges.elements; diff --git a/sql/opt_range.h b/sql/opt_range.h index 2a647c77686..8d2ba1bb0a6 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -345,14 +345,7 @@ public: void dbug_dump(int indent, bool verbose); #endif private: - /* Used only by QUICK_SELECT_DESC */ - QUICK_RANGE_SELECT(const QUICK_RANGE_SELECT& org) : QUICK_SELECT_I() - { - bcopy(&org, this, sizeof(*this)); - multi_range_length= 0; - multi_range= NULL; - multi_range_buff= NULL; - } + /* Default copy ctor used by QUICK_SELECT_DESC */ }; |