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> {
627
627
Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
628
628
Keyword::PRINT => self.parse_print(),
629
629
Keyword::RETURN => self.parse_return(),
630
- Keyword::GO => self.parse_go(),
630
+ Keyword::GO => {
631
+ self.prev_token();
632
+ self.parse_go()
633
+ }
631
634
_ => self.expected("an SQL statement", next_token),
632
635
},
633
636
Token::LParen => {
@@ -15276,6 +15279,8 @@ impl<'a> Parser<'a> {
15276
15279
15277
15280
/// Parse [Statement::Go]
15278
15281
fn parse_go(&mut self) -> Result<Statement, ParserError> {
15282
+ self.expect_keyword_is(Keyword::GO)?;
15283
+
15279
15284
// disambiguate between GO as batch delimiter & GO as identifier (etc)
15280
15285
// compare:
15281
15286
// ```sql
You can’t perform that action at this time.
0 commit comments