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> {
647647 Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
648648 Keyword::PRINT => self.parse_print(),
649649 Keyword::RETURN => self.parse_return(),
650- Keyword::GO => self.parse_go(),
650+ Keyword::GO => {
651+ self.prev_token();
652+ self.parse_go()
653+ }
651654 _ => self.expected("an SQL statement", next_token),
652655 },
653656 Token::LParen => {
@@ -16429,6 +16432,8 @@ impl<'a> Parser<'a> {
1642916432
1643016433 /// Parse [Statement::Go]
1643116434 fn parse_go(&mut self) -> Result<Statement, ParserError> {
16435+ self.expect_keyword_is(Keyword::GO)?;
16436+
1643216437 // disambiguate between GO as batch delimiter & GO as identifier (etc)
1643316438 // compare:
1643416439 // ```sql
You can’t perform that action at this time.
0 commit comments