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)
This commit is contained in:
parent
94a8921e9d
commit
8fb863e6a4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user