[CP] fix core caused by missed core and cast interval to year failed error

This commit is contained in:
Larry955
2022-12-13 14:37:57 +00:00
committed by ob-robot
parent 2c1b2f160d
commit 80b8c6361d
2 changed files with 5 additions and 1 deletions

View File

@ -6574,6 +6574,7 @@ int ObRawExprUtils::create_real_cast_expr(ObRawExprFactory &expr_factory,
int ret = OB_SUCCESS;
ObConstRawExpr *dst_expr = NULL;
ParseNode parse_node;
memset(&parse_node, 0, sizeof(ParseNode));
ObObj val;
if (OB_ISNULL(src_expr) || OB_ISNULL(session_info)) {