This commit is contained in:
wjhh2008
2023-08-10 08:18:36 +00:00
committed by ob-robot
parent dcd54c9a7b
commit a0e110cc8a
10 changed files with 59 additions and 34 deletions

View File

@ -58,7 +58,7 @@ int internal_calc_result_length(ObExprResType &type, ObExprResType &text)
ret = OB_ERR_INVALID_TYPE_FOR_OP;
LOG_USER_ERROR(OB_ERR_INVALID_TYPE_FOR_OP, "RAW", ob_obj_type_str(param_type));
LOG_WARN("ORA-00932: inconsistent datatypes: expected - got LOB", K(ret));
} else if (ob_is_string_type(param_type)) {
} else if (ob_is_string_type(param_type) || ob_is_raw(param_type)) {
length = 2 * text.get_length();
if (text.get_length_semantics() == LS_CHAR) {
length *= 4;