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