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 @@ -490,12 +490,6 @@ impl<'a> Parser<'a> {
490490 if expecting_statement_delimiter && word.keyword == Keyword::END {
491491 break;
492492 }
493- // Treat batch delimiter as an end of statement
494- if expecting_statement_delimiter && dialect_of!(self is MsSqlDialect) {
495- if let Some(Statement::Go(GoStatement { count: _ })) = stmts.last() {
496- expecting_statement_delimiter = false;
497- }
498- }
499493 }
500494 _ => {}
501495 }
@@ -512,6 +506,8 @@ impl<'a> Parser<'a> {
512506 // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
513507 ConditionalStatements::Sequence { .. } => false,
514508 },
509+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
510+ Statement::Go(_) => false,
515511 _ => true,
516512 };
517513 stmts.push(statement);
You can’t perform that action at this time.
0 commit comments