From 1e9af7996e7f84934da8241b61f349b2626f7cf5 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 24 Dec 2020 22:15:40 +0100 Subject: Fix MDEV-21958 code to be working with not 64 MAX_INDEXES --- sql/opt_range.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 27ea4a83714..1b4f20bc39c 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -7171,7 +7171,7 @@ SEL_TREE *Item_func_in::get_func_mm_tree(RANGE_OPT_PARAM *param, { key_map::Iterator it(field->key_start); uint key_no; - while ((key_no= it.next_bit()) != key_map::Iterator::BITMAP_END) + while ((key_no= it++) != key_map::Iterator::BITMAP_END) { KEY *key_info= &field->table->key_info[key_no]; if (key_info->user_defined_key_parts == 1 && -- cgit v1.2.1