We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb6f542 commit da68baaCopy full SHA for da68baa
1 file changed
src/parser/mod.rs
@@ -17604,9 +17604,22 @@ impl<'a> Parser<'a> {
17604
/// Returns true if the immediate tokens look like the
17605
/// beginning of a subquery. `(SELECT ...`
17606
fn peek_subquery_start(&mut self) -> bool {
17607
- let [maybe_lparen, maybe_select] = self.peek_tokens_ref();
17608
- Token::LParen == maybe_lparen.token
17609
- && matches!(&maybe_select.token, Token::Word(w) if w.keyword == Keyword::SELECT)
+ matches!(
+ self.peek_tokens_ref(),
+ [
17610
+ TokenWithSpan {
17611
+ token: Token::LParen,
17612
+ ..
17613
+ },
17614
17615
+ token: Token::Word(Word {
17616
+ keyword: Keyword::SELECT,
17617
17618
+ }),
17619
17620
17621
+ ]
17622
+ )
17623
}
17624
17625
0 commit comments