fix query range incorrect precise get bug
This commit is contained in:
@ -1227,8 +1227,10 @@ bool ObQueryRange::is_precise_get(const ObKeyPart &key_part_head,
|
|||||||
if (cur->in_keypart_->is_strict_in_ &&
|
if (cur->in_keypart_->is_strict_in_ &&
|
||||||
cur->in_keypart_->get_min_offset() == (++depth)) {
|
cur->in_keypart_->get_min_offset() == (++depth)) {
|
||||||
depth = cur->in_keypart_->get_max_offset();
|
depth = cur->in_keypart_->get_max_offset();
|
||||||
is_precise_get = (cur->in_keypart_->is_in_precise_get() &&
|
if (is_precise_get) {
|
||||||
cur->item_next_ == NULL);
|
is_precise_get = (cur->in_keypart_->is_in_precise_get() &&
|
||||||
|
cur->or_next_ == NULL && cur->item_next_ == NULL);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
is_precise_get = false;
|
is_precise_get = false;
|
||||||
max_pos = cur->in_keypart_->get_min_offset();
|
max_pos = cur->in_keypart_->get_min_offset();
|
||||||
|
|||||||
Reference in New Issue
Block a user