fix check length semantics bug

This commit is contained in:
sdc
2024-07-31 09:23:54 +00:00
committed by ob-robot
parent 5cdf1eb2ca
commit f9f61f7294

View File

@ -692,6 +692,7 @@ int CHECK_STRING_RES_TYPE_ORACLE(const ObExprResType &type)
ret = OB_INVALID_ARGUMENT;
LOG_WARN("incorrect charset of target type", K(ret), K(type));
} else if (!type.is_clob() && !type.is_clob_locator() && !type.is_raw() &&
CS_TYPE_BINARY != type.get_collation_type() &&
LS_CHAR != type.get_length_semantics() && LS_BYTE != type.get_length_semantics()) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("incorrect length_semantics of target type", K(ret), K(type));