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 @@ -627,7 +627,10 @@ impl<'a> Parser<'a> {
627627 Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
628628 Keyword::PRINT => self.parse_print(),
629629 Keyword::RETURN => self.parse_return(),
630- Keyword::GO => self.parse_go(),
630+ Keyword::GO => {
631+ self.prev_token();
632+ self.parse_go()
633+ }
631634 _ => self.expected("an SQL statement", next_token),
632635 },
633636 Token::LParen => {
@@ -15276,6 +15279,8 @@ impl<'a> Parser<'a> {
1527615279
1527715280 /// Parse [Statement::Go]
1527815281 fn parse_go(&mut self) -> Result<Statement, ParserError> {
15282+ self.expect_keyword_is(Keyword::GO)?;
15283+
1527915284 // disambiguate between GO as batch delimiter & GO as identifier (etc)
1528015285 // compare:
1528115286 // ```sql
You can’t perform that action at this time.
0 commit comments