Fix "unused stmt" warning in tests, with default features

This commit is contained in:
Nickolay Ponomarev 2020-07-28 23:49:32 +03:00
parent 3e880b599a
commit 9371652446

View file

@ -474,14 +474,12 @@ fn parse_execute() {
); );
let stmt = pg_and_generic().verified_stmt("EXECUTE a(1, 't')"); let stmt = pg_and_generic().verified_stmt("EXECUTE a(1, 't')");
#[cfg(feature = "bigdecimal")]
assert_eq!( assert_eq!(
stmt, stmt,
Statement::Execute { Statement::Execute {
name: "a".into(), name: "a".into(),
parameters: vec![ parameters: vec![
Expr::Value(Value::Number(bigdecimal::BigDecimal::from(1))), Expr::Value(number("1")),
Expr::Value(Value::SingleQuotedString("t".to_string())) Expr::Value(Value::SingleQuotedString("t".to_string()))
], ],
} }