We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
parse_go
1 parent 816817b commit ac55a62Copy full SHA for ac55a62
1 file changed
src/parser/mod.rs
@@ -654,7 +654,10 @@ impl<'a> Parser<'a> {
654
Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
655
Keyword::PRINT => self.parse_print(),
656
Keyword::RETURN => self.parse_return(),
657
- Keyword::GO => self.parse_go(),
+ Keyword::GO => {
658
+ self.prev_token();
659
+ self.parse_go()
660
+ }
661
_ => self.expected("an SQL statement", next_token),
662
},
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
+
16531
// disambiguate between GO as batch delimiter & GO as identifier (etc)
16532
// compare:
16533
// ```sql
0 commit comments