xmltype getval bugfix: set result cs_type

This commit is contained in:
wu-xingying
2023-05-23 10:23:00 +00:00
committed by ob-robot
parent 1d6ab7fce8
commit 795f695156

View File

@ -131,6 +131,8 @@ int ObExprUDF::calc_result_typeN(ObExprResType &type,
type.set_meta(result_type_.get_obj_meta());
if (type.get_type() == ObRawType) {
type.set_collation_level(CS_LEVEL_NUMERIC);
} else if (type.is_string_or_lob_locator_type() && udf_package_id_ == T_OBJ_XML) {
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
}
if (!type.is_ext()) {
if (lib::is_oracle_mode()) {