[xml bugfix] xmlattributes evalname input fix

This commit is contained in:
obdev
2023-06-05 10:42:11 +00:00
committed by ob-robot
parent 9968621711
commit 88a942cb33
2 changed files with 4 additions and 2 deletions

View File

@ -4623,8 +4623,7 @@ int ObRawExprPrinter::print_xml_attributes_expr(ObSysFunRawExpr *expr)
PRINT_EXPR(expr->get_param_expr(i));
ObObj attr_key_obj = static_cast<ObConstRawExpr*>(expr->get_param_expr(i + 1))->get_value();
ObItemType expr_type = expr->get_param_expr(i + 1)->get_expr_type();
if (expr_type == T_REF_COLUMN ||
expr_type == T_FUN_SYS_CAST ||
if ((T_VARCHAR != expr_type && T_CHAR != expr_type) ||
attr_key_obj.get_type() == ObObjType::ObUnknownType) {
DATA_PRINTF(" as evalname ");
PRINT_EXPR(expr->get_param_expr(i + 1));