Skip to content

Commit 1802bfa

Browse files
committed
fix tests with --all-features
1 parent 2d25384 commit 1802bfa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/sqlparser_common.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4082,7 +4082,7 @@ fn parse_alter_table_alter_column() {
40824082
assert_eq!(
40834083
op,
40844084
AlterColumnOperation::SetDefault {
4085-
value: Expr::Value(Value::Number("0".to_string(), false))
4085+
value: Expr::Value(test_utils::number("0"))
40864086
}
40874087
);
40884088
}
@@ -7291,10 +7291,7 @@ fn lateral_derived() {
72917291
let join = &from.joins[0];
72927292
assert_eq!(
72937293
join.join_operator,
7294-
JoinOperator::LeftOuter(JoinConstraint::On(Expr::Value(Value::Number(
7295-
"1".to_string(),
7296-
false
7297-
))))
7294+
JoinOperator::LeftOuter(JoinConstraint::On(Expr::Value(test_utils::number("1"))))
72987295
);
72997296
if let TableFactor::Derived {
73007297
lateral,

0 commit comments

Comments
 (0)