mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 02:47:37 +02:00
Undo the incorrect part of commit 7e700bd2a8
Restore the old code in opt_range.cc
This commit is contained in:
parent
e3661b9f7c
commit
03edf2ed04
1 changed files with 2 additions and 2 deletions
|
|
@ -11677,8 +11677,8 @@ int QUICK_SELECT_DESC::get_next()
|
|||
end_key.flag= (last_range->flag & NEAR_MAX ? HA_READ_BEFORE_KEY :
|
||||
HA_READ_AFTER_KEY);
|
||||
end_key.keypart_map= last_range->max_keypart_map;
|
||||
result= file->prepare_range_scan((last_range->flag & NO_MIN_RANGE) ? NULL : &end_key,
|
||||
(last_range->flag & NO_MAX_RANGE) ? NULL : &start_key);
|
||||
result= file->prepare_range_scan((last_range->flag & NO_MIN_RANGE) ? NULL : &start_key,
|
||||
(last_range->flag & NO_MAX_RANGE) ? NULL : &end_key);
|
||||
if (result)
|
||||
{
|
||||
DBUG_RETURN(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue