[CP] Old engine: bit or calc result error

This commit is contained in:
akaError
2022-12-14 10:11:26 +00:00
committed by ob-robot
parent 28e65a11f6
commit 8dcc3b55f3

View File

@ -4651,7 +4651,7 @@ int ObBitwiseExprOperator::get_uint64(const ObObj &obj,
} }
} else { } else {
// need add CM_NO_RANGE_CHECK, otherwise 1 & -3.5(float) return 0. // need add CM_NO_RANGE_CHECK, otherwise 1 & -3.5(float) return 0.
EXPR_DEFINE_CAST_CTX(expr_ctx, CM_NO_RANGE_CHECK); EXPR_DEFINE_CAST_CTX(expr_ctx, CM_NO_RANGE_CHECK | CM_STRING_INTEGER_TRUNC);
EXPR_GET_UINT64_V2(obj, out); EXPR_GET_UINT64_V2(obj, out);
} }
return ret; return ret;