File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,12 +512,6 @@ impl<'a> Parser<'a> {
512512 if expecting_statement_delimiter && word.keyword == Keyword::END {
513513 break;
514514 }
515- // Treat batch delimiter as an end of statement
516- if expecting_statement_delimiter && dialect_of!(self is MsSqlDialect) {
517- if let Some(Statement::Go(GoStatement { count: _ })) = stmts.last() {
518- expecting_statement_delimiter = false;
519- }
520- }
521515 }
522516 _ => {}
523517 }
@@ -534,6 +528,8 @@ impl<'a> Parser<'a> {
534528 // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
535529 ConditionalStatements::Sequence { .. } => false,
536530 },
531+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
532+ Statement::Go(_) => false,
537533 _ => true,
538534 };
539535 stmts.push(statement);
You can’t perform that action at this time.
0 commit comments