fix query range incorrect precise get bug

This commit is contained in:
Larry955
2023-06-06 09:42:22 +00:00
committed by ob-robot
parent 1968d98d68
commit d661796afb

View File

@ -1227,8 +1227,10 @@ bool ObQueryRange::is_precise_get(const ObKeyPart &key_part_head,
if (cur->in_keypart_->is_strict_in_ &&
cur->in_keypart_->get_min_offset() == (++depth)) {
depth = cur->in_keypart_->get_max_offset();
is_precise_get = (cur->in_keypart_->is_in_precise_get() &&
cur->item_next_ == NULL);
if (is_precise_get) {
is_precise_get = (cur->in_keypart_->is_in_precise_get() &&
cur->or_next_ == NULL && cur->item_next_ == NULL);
}
} else {
is_precise_get = false;
max_pos = cur->in_keypart_->get_min_offset();