[Commits] 03edf2e: Undo the incorrect part of commit 7e700bd2a81ae4b37145f1c32bb0902c72856d2d
revision-id: 03edf2ed04dbffe8c413fe0dd2715684e1627371 parent(s): e3661b9f7c60aa471aaa79e597723e897caf320c committer: Sergei Petrunia branch nick: 10.2-r10 timestamp: 2018-05-07 20:33:14 +0300 message: Undo the incorrect part of commit 7e700bd2a81ae4b37145f1c32bb0902c72856d2d Restore the old code in opt_range.cc --- sql/opt_range.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index bc047b2..cc57469 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -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);
participants (1)
-
psergey@askmonty.org