Commit 8fb863e6 authored by Yury Chaikou's avatar Yury Chaikou Committed by Oleksandr Byelkin

MDEV-24712 get_partition_set is never executed in...

MDEV-24712 get_partition_set is never executed in ha_partition::multi_range_key_create_key due to bitwise & with 0 constant

use == to compare enum (despite the name it is not a bit flag)
parent 94a8921e
......@@ -6265,7 +6265,7 @@ int ha_partition::multi_range_key_create_key(RANGE_SEQ_IF *seq,
m_mrr_range_current->ptr= m_mrr_range_current->key_multi_range.ptr;
m_mrr_range_current->key_multi_range.ptr= m_mrr_range_current;
if (start_key->key && (start_key->flag & HA_READ_KEY_EXACT))
if (start_key->key && (start_key->flag == HA_READ_KEY_EXACT))
get_partition_set(table, table->record[0], active_index,
start_key, &m_part_spec);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment