xml generated column index 4377 bugfix

This commit is contained in:
obdev
2023-07-25 16:48:20 +00:00
committed by ob-robot
parent e087f631c8
commit 551ee36be2
7 changed files with 66 additions and 6 deletions

View File

@ -657,7 +657,8 @@ int ObExprCast::adjust_udt_cast_type(const ObExprResType &src_type, ObExprResTyp
} else if (dst_type.is_user_defined_sql_type()) {
dst_type.set_subschema_id(ObXMLSqlType);
}
} else if (src_type.is_null()) {
} else if (src_type.is_null() || src_type.is_character_type()) {
// null or chararcter type can cast to xmltype (other udt types are not supported yet)
if (dst_type.get_type() == ObUserDefinedSQLType) {
dst_type.set_sql_udt(ObXMLSqlType);
}