[WhiteScan] Fix some white scan errors
This commit is contained in:
@ -403,7 +403,6 @@ int ObExprDiv::div_interval(
|
||||
res.set_scale(ObAccuracy::MAX_ACCURACY2[ORACLE_MODE][res.get_type()].get_scale());
|
||||
UNUSED(calc_scale);
|
||||
return ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
const ObScale ObExprDiv::DIV_CALC_SCALE = 9;
|
||||
|
||||
@ -574,7 +574,9 @@ int ObExprFuncPartHash::calc_oracle_vt_part_id(ObTaskExecutorCtx& task_exec_ctx,
|
||||
} else {
|
||||
ObString ip = objs_stack[0].get_string();
|
||||
number::ObNumber port_num;
|
||||
objs_stack[1].get_number(port_num);
|
||||
if (OB_FAIL(objs_stack[1].get_number(port_num))) {
|
||||
LOG_WARN("Get port_number failed.", K(ret));
|
||||
} else {
|
||||
int32_t port = atoi(port_num.format());
|
||||
ObAddr addr;
|
||||
addr.set_ip_addr(ip, port);
|
||||
@ -585,6 +587,7 @@ int ObExprFuncPartHash::calc_oracle_vt_part_id(ObTaskExecutorCtx& task_exec_ctx,
|
||||
result.set_int(part_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@ -182,6 +182,7 @@ class ObExprInOrNotIn : public ObVectorExprOperator {
|
||||
public:
|
||||
ObExprInCtx()
|
||||
: ObExprOperatorCtx(),
|
||||
row_dimension_(-1),
|
||||
right_has_null(false),
|
||||
hash_func_buff_(NULL),
|
||||
funcs_ptr_set(false),
|
||||
|
||||
@ -44,10 +44,6 @@ int ObExprBaseLeastGreatest::calc_result_typeN_oracle(
|
||||
} else if (OB_ISNULL(types) || OB_UNLIKELY(param_num < 1)) {
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
LOG_WARN("types is null or param_num is wrong", K(types), K(param_num), K(ret));
|
||||
} else {
|
||||
if (OB_ISNULL(types) || OB_UNLIKELY(param_num < 1)) {
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
LOG_WARN("types is null or param_num is wrong", K(types), K(param_num), K(ret));
|
||||
} else {
|
||||
ObExprResType& first_type = types[0];
|
||||
type = first_type;
|
||||
@ -103,7 +99,6 @@ int ObExprBaseLeastGreatest::calc_result_typeN_oracle(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ObNullType != types[0].get_type()) {
|
||||
for (int64_t i = 1; OB_SUCC(ret) && i < param_num; i++) {
|
||||
OZ(ObObjCaster::can_cast_in_oracle_mode(types[0].get_type_class(), types[i].get_type_class()));
|
||||
|
||||
Reference in New Issue
Block a user