提交 c131fd7d 编写于 作者: O obdev 提交者: wangzelin.wzl

fix bugs

上级 e9dc428c
......@@ -1841,12 +1841,12 @@ int ObTransformUtils::is_expr_not_null(ObNotNullContext &ctx,
T_FUN_SYS_ROWNUM == expr->get_expr_type() ||
T_LEVEL == expr->get_expr_type()) {
is_not_null = true;
} else if (OB_FAIL(!expr->is_const_raw_expr() &&
is_general_expr_not_null(ctx, expr, is_not_null, constraints))) {
} else if (!expr->is_const_raw_expr() &&
OB_FAIL(is_general_expr_not_null(ctx, expr, is_not_null, constraints))) {
LOG_WARN("failed to check compound expr", K(ret));
} else if (is_not_null) {
// do nothing
} else if (expr->is_static_const_expr()) {
} else if (expr->is_static_scalar_const_expr()) {
if (OB_FAIL(is_const_expr_not_null(ctx, expr, is_not_null))) {
LOG_WARN("failed to check calculable expr not null", K(ret));
} else if (is_not_null && !expr->is_const_raw_expr() &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册