diff --git a/sql/opt_range.cc b/sql/opt_range.cc index f2f14a2dcc9..1f42d0567a7 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -7619,7 +7619,7 @@ check_quick_keys(PARAM *param, uint idx, SEL_ARG *key_tree, if (unlikely(param->thd->killed != 0)) return HA_POS_ERROR; - + keynr=param->real_keynr[idx]; param->range_count++; if (!tmp_min_flag && ! tmp_max_flag &&