fix case when, returning with xmltype incompatible

This commit is contained in:
obdev
2023-05-15 08:21:48 +00:00
committed by ob-robot
parent be9397596c
commit 64df4d7271
4 changed files with 22 additions and 12 deletions

View File

@ -1460,11 +1460,12 @@ int ObDelUpdResolver::resolve_returning(const ParseNode *parse_tree)
expr = lob_expr;
LOG_DEBUG("build returning lob expr", KPC(expr), KPC(ref_expr), KPC(lob_expr));
}
} else if (ObObjType::ObUserDefinedSQLType == ref_expr->get_data_type()) {
ret = OB_ERR_RETURNING_CLAUSE;
LOG_WARN("RETURNING clause is currently not supported for object type columns", K(ret));
}
}
if (OB_SUCC(ret) && ob_is_user_defined_type(expr->get_data_type())) {
ret = OB_ERR_RETURNING_CLAUSE;
LOG_WARN("RETURNING clause is currently not supported for object type", K(ret));
}
if (OB_SUCC(ret)) {
ObString expr_name;