File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -483,12 +483,6 @@ impl<'a> Parser<'a> {
483483 if expecting_statement_delimiter && word.keyword == Keyword::END {
484484 break;
485485 }
486- // Treat batch delimiter as an end of statement
487- if expecting_statement_delimiter && dialect_of!(self is MsSqlDialect) {
488- if let Some(Statement::Go(GoStatement { count: _ })) = stmts.last() {
489- expecting_statement_delimiter = false;
490- }
491- }
492486 }
493487 _ => {}
494488 }
@@ -505,6 +499,8 @@ impl<'a> Parser<'a> {
505499 // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
506500 ConditionalStatements::Sequence { .. } => false,
507501 },
502+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
503+ Statement::Go(_) => false,
508504 _ => true,
509505 };
510506 stmts.push(statement);
You can’t perform that action at this time.
0 commit comments