diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc index 4609e9fba12..4ecdde7d28e 100644 --- a/storage/maria/ha_maria.cc +++ b/storage/maria/ha_maria.cc @@ -2261,6 +2261,7 @@ int ha_maria::index_read_idx_map(uchar * buf, uint index, const uchar * key, { int error; /* Use the pushed index condition if it matches the index we're scanning */ + end_range= NULL; if (index == pushed_idx_cond_keyno) ma_set_index_cond_func(file, index_cond_func_maria, this); diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc index d102e120c94..702cb084111 100644 --- a/storage/myisam/ha_myisam.cc +++ b/storage/myisam/ha_myisam.cc @@ -1792,6 +1792,7 @@ int ha_myisam::index_read_idx_map(uchar *buf, uint index, const uchar *key, { int res; /* Use the pushed index condition if it matches the index we're scanning */ + end_range= NULL; if (index == pushed_idx_cond_keyno) mi_set_index_cond_func(file, index_cond_func_myisam, this); res= mi_rkey(file, buf, index, key, keypart_map, find_flag);