We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
parse_go
1 parent 04a94d9 commit c1efb4fCopy full SHA for c1efb4f
1 file changed
src/parser/mod.rs
@@ -729,7 +729,10 @@ impl<'a> Parser<'a> {
729
self.parse_vacuum()
730
}
731
Keyword::RESET => self.parse_reset().map(Into::into),
732
- Keyword::GO => self.parse_go(),
+ Keyword::GO => {
733
+ self.prev_token();
734
+ self.parse_go()
735
+ }
736
_ => self.expected("an SQL statement", next_token),
737
},
738
Token::LParen => {
@@ -19688,6 +19691,8 @@ impl<'a> Parser<'a> {
19688
19691
19689
19692
/// Parse [Statement::Go]
19690
19693
fn parse_go(&mut self) -> Result<Statement, ParserError> {
19694
+ self.expect_keyword_is(Keyword::GO)?;
19695
+
19696
// disambiguate between GO as batch delimiter & GO as identifier (etc)
19697
// compare:
19698
// ```sql
0 commit comments