1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Undo the incorrect part of commit 7e700bd2a8

Restore the old code in opt_range.cc
This commit is contained in:
Sergei Petrunia
2018-05-07 20:33:14 +03:00
parent e3661b9f7c
commit 03edf2ed04

View File

@@ -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);