[CP] Old engine: bit or calc result error
This commit is contained in:
@ -4651,7 +4651,7 @@ int ObBitwiseExprOperator::get_uint64(const ObObj &obj,
|
||||
}
|
||||
} else {
|
||||
// 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);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user