fix some bugs

This commit is contained in:
ChangerR
2023-11-10 06:39:12 +00:00
committed by ob-robot
parent 8b6b9d8df0
commit 7d7c37db03
4 changed files with 275 additions and 290 deletions

View File

@ -1987,14 +1987,11 @@ int ObTransformSimplifySubquery::try_trans_any_all_as_exists(ObDMLStmt *stmt,
}
} else {
//check children
bool child_is_bool_expr = expr->get_expr_type() == T_OP_OR ||
expr->get_expr_type() == T_OP_AND ||
expr->get_expr_type() == T_OP_XOR;
for (int64_t i = 0; OB_SUCC(ret) && i < expr->get_param_count(); ++i) {
if (OB_FAIL(SMART_CALL(try_trans_any_all_as_exists(stmt,
expr->get_param_expr(i),
not_null_ctx,
child_is_bool_expr,
false,
is_happened)))) {
LOG_WARN("failed to try_transform_any_all for param", K(ret));
} else {