summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 7e58754556b..694423faf0b 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -10619,7 +10619,7 @@ key_or(RANGE_OPT_PARAM *param, SEL_ARG *key1,SEL_ARG *key2)
tmp: [---------]
*/
key2->copy_max_to_min(tmp);
- key2= key2_next;
+ key2->next= key2_next; // In case of key2_shared
}
continue;
}