We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f50d42 commit 84d074bCopy full SHA for 84d074b
1 file changed
src/parser/mod.rs
@@ -11830,7 +11830,7 @@ impl<'a> Parser<'a> {
11830
};
11831
let mut relation = self.parse_table_factor()?;
11832
11833
- if self.is_next_token_a_join() {
+ if self.peek_parens_less_nested_join() {
11834
let joins = self.parse_joins()?;
11835
relation = TableFactor::NestedJoin {
11836
table_with_joins: Box::new(TableWithJoins { relation, joins }),
@@ -11850,9 +11850,9 @@ impl<'a> Parser<'a> {
11850
Ok(joins)
11851
}
11852
11853
- fn is_next_token_a_join(&self) -> bool {
+ fn peek_parens_less_nested_join(&self) -> bool {
11854
matches!(
11855
- self.peek_token().token,
+ self.peek_token_ref().token,
11856
Token::Word(Word {
11857
keyword: Keyword::JOIN
11858
| Keyword::INNER
0 commit comments