Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user