We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
parse_go
1 parent 9bc1eb9 commit a62d99dCopy full SHA for a62d99d
1 file changed
src/parser/mod.rs
@@ -647,7 +647,10 @@ impl<'a> Parser<'a> {
647
Keyword::COMMENT if self.dialect.supports_comment_on() => self.parse_comment(),
648
Keyword::PRINT => self.parse_print(),
649
Keyword::RETURN => self.parse_return(),
650
- Keyword::GO => self.parse_go(),
+ Keyword::GO => {
651
+ self.prev_token();
652
+ self.parse_go()
653
+ }
654
_ => self.expected("an SQL statement", next_token),
655
},
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
+
16437
// disambiguate between GO as batch delimiter & GO as identifier (etc)
16438
// compare:
16439
// ```sql
0 commit comments