bugfix : xml can not apply in NLSSORT & GREATEST with xmltype param & ban updatexml in PL

This commit is contained in:
obdev
2023-06-10 02:42:25 +00:00
committed by ob-robot
parent 0c21bc38a1
commit 92e836d354
3 changed files with 14 additions and 1 deletions

View File

@ -94,6 +94,9 @@ int ObExprLeastGreatest::calc_result_typeN_oracle(ObExprResType &type,
type.set_type(ObVarcharType);
type.set_calc_type(ObVarcharType);
}
} else if (ObUserDefinedSQLTC == first_type_class) {
ret = OB_ERR_NO_ORDER_MAP_SQL;
LOG_WARN("cannot ORDER objects without MAP or ORDER method", K(ret));
} else {
/**
* 除去number类型,经过测试,结果的scale和第一个参数的scale一样,所以
@ -154,6 +157,10 @@ int ObExprLeastGreatest::calc_result_typeN_oracle(ObExprResType &type,
item_length = OB_MAX_TIMESTAMP_TZ_LENGTH;
break;
}
case ObUserDefinedSQLTC: {
item_length = types[i].get_length();
break;
}
default:{
// all types in oracle mode have been handled
ret = OB_INVALID_ARGUMENT;