Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -56,7 +56,7 @@ inline int ObExprConv::calc_result_type3(ObExprResType &type,
CK (OB_NOT_NULL(type_ctx.get_session()));
if (OB_SUCC(ret)) {
type.set_varchar();
type.set_collation_type(get_default_collation_type(type.get_type(), type_ctx));
type.set_collation_type(get_default_collation_type(type.get_type(), *type_ctx.get_session()));
type.set_collation_level(CS_LEVEL_COERCIBLE);
type.set_length(64);
}
@ -138,14 +138,5 @@ int ObExprConv::eval_conv(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res_datum
return ret;
}
DEF_SET_LOCAL_SESSION_VARS(ObExprConv, raw_expr) {
int ret = OB_SUCCESS;
if (lib::is_mysql_mode()) {
SET_LOCAL_SYSVAR_CAPACITY(1);
EXPR_ADD_LOCAL_SYSVAR(share::SYS_VAR_COLLATION_CONNECTION);
}
return ret;
}
} //namespace sql
} //namespace oceanbase