[XML] fix count() failed
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user