xml bugfix: allow pl xmltype cast to string & adapt error code for xmltype implict cast to clob/blob

This commit is contained in:
GroundWu
2023-05-16 05:16:32 +00:00
committed by ob-robot
parent 276d54eafc
commit 1c1eef34a3
2 changed files with 35 additions and 4 deletions

View File

@ -7724,6 +7724,15 @@ CAST_FUNC_NAME(udt, string)
return ret;
}
CAST_FUNC_NAME(pl_extend, string)
{
EVAL_STRING_ARG()
{
ret = OB_NOT_SUPPORTED;
}
return ret;
}
CAST_FUNC_NAME(sql_udt, pl_extend)
{
// Convert sql udt type to pl udt type, currently only xmltype is supported
@ -9784,7 +9793,7 @@ ObExpr::EvalFunc OB_DATUM_CAST_ORACLE_IMPLICIT[ObMaxTC][ObMaxTC] =
cast_not_expected,/*date*/
cast_not_expected,/*time*/
cast_not_expected,/*year*/
cast_not_expected,/*string*/
pl_extend_string,/*string*/
cast_eval_arg,/*extend*/
cast_not_expected,/*unknown*/
cast_inconsistent_types,/*text*/