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 @@ -647,7 +647,10 @@ impl<'a> Parser<'a> {
647
647
Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
648
648
Keyword::PRINT => self.parse_print(),
649
649
Keyword::RETURN => self.parse_return(),
650
- Keyword::GO => self.parse_go(),
650
+ Keyword::GO => {
651
+ self.prev_token();
652
+ self.parse_go()
653
+ }
651
654
_ => self.expected("an SQL statement", next_token),
652
655
},
653
656
Token::LParen => {
@@ -16429,6 +16432,8 @@ impl<'a> Parser<'a> {
16429
16432
16430
16433
/// Parse [Statement::Go]
16431
16434
fn parse_go(&mut self) -> Result<Statement, ParserError> {
16435
+ self.expect_keyword_is(Keyword::GO)?;
16436
+
16432
16437
// disambiguate between GO as batch delimiter & GO as identifier (etc)
16433
16438
// compare:
16434
16439
// ```sql
You can’t perform that action at this time.
0 commit comments