Fix two errorcode related bugs: issue 46899782 and issue 45900041
This commit is contained in:
@ -967,8 +967,12 @@ int common_string_double(const ObExpr &expr,
|
||||
}
|
||||
} else if (OB_FAIL(check_convert_str_err(in_str.ptr(), endptr, in_str.length(), err, in_cs_type))) {
|
||||
LOG_WARN("failed to check_convert_str_err", K(ret), K(in_str), K(out_val), K(err), K(in_cs_type));
|
||||
ret = OB_ERR_DOUBLE_TRUNCATED;
|
||||
// Compatible with oracle error massage, mapping `OB_ERR_DOUBLE_TRUNCATED` to invalid number error
|
||||
if (lib::is_oracle_mode()) {
|
||||
ret = OB_ERR_DOUBLE_TRUNCATED;
|
||||
}
|
||||
if (CM_IS_WARN_ON_FAIL(expr.extra_)) {
|
||||
ret = OB_ERR_DOUBLE_TRUNCATED;
|
||||
LOG_USER_WARN(OB_ERR_DOUBLE_TRUNCATED, in_str.length(), in_str.ptr());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user