bugfix: decode adaptation for xml && allow filter for count arg in xpath && filter result cache

This commit is contained in:
wu-xingying
2023-07-03 07:18:45 +00:00
committed by ob-robot
parent e32862ac75
commit d3dcf6934d
5 changed files with 31 additions and 10 deletions

View File

@ -62,6 +62,9 @@ int ObExprOracleDecode::calc_result_typeN(ObExprResType &type,
LOG_USER_ERROR(OB_ERR_INVALID_TYPE_FOR_OP, "-",
ob_obj_type_str(types_stack[0].get_type()));
LOG_WARN("invalid type of parameter", K(ret), K(types_stack[0]));
} else if (lib::is_oracle_mode() && types_stack[CALC_TYPE_INDEX].get_type() == ObUserDefinedSQLType) {
ret = OB_ERR_NO_ORDER_MAP_SQL;
LOG_WARN("cannot ORDER objects without MAP or ORDER method", K(ret));
}
for (int64_t i = 1; OB_SUCC(ret) && i < param_num; i += 2) {
if (has_default && i == param_num - 1) {
@ -286,6 +289,9 @@ int ObExprOracleDecode::calc_result_typeN(ObExprResType &type,
}
}
}
if (OB_SUCC(ret) && lib::is_oracle_mode() &&type.get_type() == ObUserDefinedSQLType) {
type.set_subschema_id(ObXMLSqlType);
}
}
if (OB_SUCC(ret)) {
if (ob_is_otimestamp_type(types_stack[RESULT_TYPE_INDEX].get_type())) {