fix bug when do row gt and with like exprs

This commit is contained in:
Larry955
2023-05-23 08:41:49 +00:00
committed by ob-robot
parent 53c181dd36
commit 5bda949e1a

View File

@ -4304,10 +4304,9 @@ int ObQueryRange::do_row_gt_and(ObKeyPart *l_gt, ObKeyPart *r_gt, ObKeyPart *&r
LOG_WARN("Light copy key part and items failed", K(ret));
} else if(OB_FAIL(deep_copy_key_part_and_items(r_cur, new_r_cur))) {
LOG_WARN("Right copy key part and items failed", K(ret));
} else if (OB_ISNULL(new_l_cur) || OB_ISNULL(new_r_cur) ||
(OB_UNLIKELY(new_l_cur->is_like_key() && new_r_cur->is_like_key()))) {
} else if (OB_ISNULL(new_l_cur) || OB_ISNULL(new_r_cur)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("new_l_cur and r_cur are both like key", K(ret), K(*new_l_cur), K(*new_r_cur));
LOG_WARN("get unexpected null", K(ret), K(new_l_cur), K(new_r_cur));
} else if (new_l_cur->is_like_key()) {
result = new_r_cur;
} else if (new_r_cur->is_like_key()) {