You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
negate() seems to fail in treat i64::MIN ( since |i64::MIN| == |i64::MAX| + 1 )
Following test fails. ASTTranslator::integer_constant() should input positive number in string form ( - comes as UnaryOperator ). |i64::MIN| exceeds i64.
#[async_std::test]asyncfntest_big_int(){SqlTest::default().add_steps(Steps::BeginTransaction).add_step(Step::new("CREATE TABLE t (c BIGINT, PRIMARY KEY (c))",StepRes::Ok,)).add_step(Step::new(format!("INSERT INTO t (c) VALUES ({})", i64::MIN),StepRes::Ok,)).run().await;}
thread 'proptest_big_int' panicked at 'unexpected error ApllodbError {
kind: NumericValueOutOfRange,
desc: "integer value `9223372036854775808` could not be parsed as i64 (max supported size)",
source: Some(
ParseIntError {
kind: PosOverflow,
},
),
} on ApllodbServer::command() - step: Step {
sql: "INSERT INTO t (c) VALUES (-9223372036854775808)",
expected: StepRes::Ok,
}', apllodb-server/tests/sql_test/step.rs:81:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
laysakura
changed the title
NNSqlValue、境界値の挙動が多分怪しい
NNSqlValue、整数境界値の挙動が多分怪しい
Feb 1, 2021
i64::MIN
( since|i64::MIN| == |i64::MAX| + 1
)ASTTranslator::integer_constant()
should input positive number in string form (-
comes asUnaryOperator
).|i64::MIN|
exceedsi64
.The text was updated successfully, but these errors were encountered: