File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -654,7 +654,10 @@ impl<'a> Parser<'a> {
654
654
Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
655
655
Keyword::PRINT => self.parse_print(),
656
656
Keyword::RETURN => self.parse_return(),
657
- Keyword::GO => self.parse_go(),
657
+ Keyword::GO => {
658
+ self.prev_token();
659
+ self.parse_go()
660
+ }
658
661
_ => self.expected("an SQL statement", next_token),
659
662
},
660
663
Token::LParen => {
@@ -16523,6 +16526,8 @@ impl<'a> Parser<'a> {
16523
16526
16524
16527
/// Parse [Statement::Go]
16525
16528
fn parse_go(&mut self) -> Result<Statement, ParserError> {
16529
+ self.expect_keyword_is(Keyword::GO)?;
16530
+
16526
16531
// disambiguate between GO as batch delimiter & GO as identifier (etc)
16527
16532
// compare:
16528
16533
// ```sql
You can’t perform that action at this time.
0 commit comments