We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_go
1 parent 2c77569 commit 803c278Copy full SHA for 803c278
src/parser/mod.rs
@@ -670,7 +670,10 @@ impl<'a> Parser<'a> {
670
self.prev_token();
671
self.parse_vacuum()
672
}
673
- Keyword::GO => self.parse_go(),
+ Keyword::GO => {
674
+ self.prev_token();
675
+ self.parse_go()
676
+ }
677
_ => self.expected("an SQL statement", next_token),
678
},
679
Token::LParen => {
@@ -17388,6 +17391,8 @@ impl<'a> Parser<'a> {
17388
17391
17389
17392
/// Parse [Statement::Go]
17390
17393
fn parse_go(&mut self) -> Result<Statement, ParserError> {
17394
+ self.expect_keyword_is(Keyword::GO)?;
17395
+
17396
// disambiguate between GO as batch delimiter & GO as identifier (etc)
17397
// compare:
17398
// ```sql
0 commit comments