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> {
483
483
if expecting_statement_delimiter && word.keyword == Keyword::END {
484
484
break;
485
485
}
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
- }
492
486
}
493
487
_ => {}
494
488
}
@@ -505,6 +499,8 @@ impl<'a> Parser<'a> {
505
499
// parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
506
500
ConditionalStatements::Sequence { .. } => false,
507
501
},
502
+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
503
+ Statement::Go(_) => false,
508
504
_ => true,
509
505
};
510
506
stmts.push(statement);
You can’t perform that action at this time.
0 commit comments