[CP] [CP] Fix view synonym bug

This commit is contained in:
xianyu-w
2024-02-10 11:32:36 +00:00
committed by ob-robot
parent b2f4717f20
commit 7829c9c8dc
27 changed files with 48 additions and 54 deletions

View File

@ -570,7 +570,7 @@ int ObTransformSimplifyExpr::replace_like_condition(ObDMLStmt *stmt, bool &trans
}
ObStmtExprGetter visitor(scopes);
visitor.checker_ = &expr_checker;
if (OB_FAIL(stmt->iterate_stmt_expr(visitor))) {
if (FAILEDx(stmt->iterate_stmt_expr(visitor))) {
LOG_WARN("get relation exprs failed", K(ret));
}
//collect like exprs which need to be replaced
@ -1294,7 +1294,7 @@ int ObTransformSimplifyExpr::remove_dummy_nvl(ObDMLStmt *stmt,
}
not_null_ctx.reset();
if (OB_FAIL(not_null_ctx.generate_stmt_context(NULLABLE_SCOPE::NS_TOP))){
if (FAILEDx(not_null_ctx.generate_stmt_context(NULLABLE_SCOPE::NS_TOP))){
LOG_WARN("failed to generate not null context", K(ret));
}
if (OB_SUCC(ret) && stmt->is_select_stmt() && !static_cast<ObSelectStmt *>(stmt)->is_scala_group_by()) {
@ -3336,7 +3336,7 @@ int ObTransformSimplifyExpr::check_remove_ora_decode_valid(ObRawExpr *&expr,
decode_expr,
param_exprs))) {
LOG_WARN("failed to build ora_decode expr", K(ret));
} else if (ObTransformUtils::calc_const_expr_result(decode_expr, ctx_, decode_obj, calc_happened)) {
} else if (OB_FAIL(ObTransformUtils::calc_const_expr_result(decode_expr, ctx_, decode_obj, calc_happened))) {
LOG_WARN("failed to calc const expr result", K(ret), K(*decode_expr));
} else if (!calc_happened) {
is_valid = false;