[FEAT MERGE] OB Support XMLType

Co-authored-by: simonjoylet <simonjoylet@gmail.com>
This commit is contained in:
obdev
2023-04-28 03:45:10 +00:00
committed by ob-robot
parent 58bb3d34b7
commit 17abf2818a
405 changed files with 18839 additions and 1573 deletions

View File

@ -399,6 +399,14 @@ int ObExprColumnConv::column_convert(const ObExpr &expr,
LOG_WARN("fail do datum_accuracy_check for lob res", K(ret), K(expr), K(*val));
}
LOG_DEBUG("after column convert", K(expr), K(datum), K(cast_mode));
} else if (is_lob_storage(out_type) && expr.args_[4]->obj_meta_.is_user_defined_sql_type()) {
// udt types can only insert to lob columns by rewrite.
// but before rewrite, column convert type deducing may happen
// so prevent the convertion during execution
ret = OB_ERR_INVALID_XML_DATATYPE;
LOG_USER_ERROR(OB_ERR_INVALID_XML_DATATYPE, ob_obj_type_str(out_type), "ANYDATA");
LOG_WARN("convert xmltype to character type is not supported in PL",
K(ret), K(expr.args_[4]->obj_meta_), K(out_type));
} else {
ObObjType in_type = expr.args_[4]->obj_meta_.get_type();
ObCollationType in_cs_type = expr.args_[4]->obj_meta_.get_collation_type();