fix bugs of INET expr

This commit is contained in:
xf0
2021-10-13 20:33:10 +08:00
committed by wangzelin.wzl
parent 72122fbe1c
commit 490ce0a9df
5 changed files with 10 additions and 11 deletions

View File

@ -3362,7 +3362,7 @@ int ObTransformPreProcess::create_equal_expr_for_case_expr(ObRawExprFactory& exp
int ret = OB_SUCCESS;
ObObjType obj_type = ObMaxType;
const ObExprResType& arg_type = arg_expr->get_result_type();
const ObExprResType& when_type = arg_expr->get_result_type();
const ObExprResType& when_type = when_expr->get_result_type();
ObRawExpr* new_when_expr = NULL; // cast expr may added
ObRawExpr* new_arg_expr = NULL;
if (OB_ISNULL(arg_expr) || OB_ISNULL(when_expr)) {