diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index ff82775ac7a0..9b574c70f9af 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -3235,6 +3235,7 @@ ha_innobase::reset_template(void) m_prebuilt->keep_other_fields_on_keyread = 0; m_prebuilt->read_just_key = 0; m_prebuilt->in_fts_query = 0; + m_prebuilt->m_end_range = false; /* Reset index condition pushdown state. */ if (m_prebuilt->idx_cond) {