Skip to content

Commit 5190fa3

Browse files
committed
join constraints are not required
1 parent bbfea03 commit 5190fa3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/ast/query.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ pub enum JoinConstraint {
471471
Where(Expr),
472472
Using(Vec<Ident>),
473473
Natural,
474+
Empty,
474475
}
475476

476477
/// An `ORDER BY` expression

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,7 @@ impl<'a> Parser<'a> {
24712471
let columns = self.parse_parenthesized_column_list(Mandatory)?;
24722472
Ok(JoinConstraint::Using(columns))
24732473
} else {
2474-
self.expected("ON, or USING after JOIN", self.peek_token())
2474+
Ok(JoinConstraint::Empty)
24752475
}
24762476
}
24772477

0 commit comments

Comments
 (0)