[XML] fix count() failed

This commit is contained in:
obdev
2023-05-05 02:08:20 +00:00
committed by ob-robot
parent bea9dc85bf
commit fe350b62e6
4 changed files with 12 additions and 8 deletions

View File

@ -70,6 +70,8 @@ int ObExprExtractValue::calc_result_typeN(ObExprResType &type,
if (OB_SUCC(ret)) {
type.set_type(ObVarcharType);
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
// length == OB_MAX_ORACLE_VARCHAR_LENGTH is not supported by generated key, use OB_MAX_VARCHAR_LENGTH_KEY instead
type.set_length(OB_MAX_VARCHAR_LENGTH_KEY);
}
}
return ret;