Skip to content

Commit 6575513

Browse files
committed
fmt
1 parent 0a2c232 commit 6575513

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

tests/sqlparser_common.rs

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3676,25 +3676,28 @@ fn parse_derived_tables() {
36763676
let from = only(select.from);
36773677
assert_eq!(
36783678
from.relation,
3679-
TableFactor::NestedJoin {table_with_joins: Box::new(TableWithJoins {
3680-
relation: TableFactor::Derived {
3681-
lateral: false,
3682-
subquery: Box::new(verified_query("(SELECT 1) UNION (SELECT 2)")),
3683-
alias: Some(TableAlias {
3684-
name: "t1".into(),
3685-
columns: vec![],
3686-
})
3687-
},
3688-
joins: vec![Join {
3689-
relation: TableFactor::Table {
3690-
name: ObjectName(vec!["t2".into()]),
3691-
alias: None,
3692-
args: None,
3693-
with_hints: vec![],
3679+
TableFactor::NestedJoin {
3680+
table_with_joins: Box::new(TableWithJoins {
3681+
relation: TableFactor::Derived {
3682+
lateral: false,
3683+
subquery: Box::new(verified_query("(SELECT 1) UNION (SELECT 2)")),
3684+
alias: Some(TableAlias {
3685+
name: "t1".into(),
3686+
columns: vec![],
3687+
})
36943688
},
3695-
join_operator: JoinOperator::Inner(JoinConstraint::Natural),
3696-
}],
3697-
}), alias: None}
3689+
joins: vec![Join {
3690+
relation: TableFactor::Table {
3691+
name: ObjectName(vec!["t2".into()]),
3692+
alias: None,
3693+
args: None,
3694+
with_hints: vec![],
3695+
},
3696+
join_operator: JoinOperator::Inner(JoinConstraint::Natural),
3697+
}],
3698+
}),
3699+
alias: None
3700+
}
36983701
);
36993702
}
37003703

0 commit comments

Comments
 (0)