File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -475,12 +475,6 @@ impl<'a> Parser<'a> {
475
475
if expecting_statement_delimiter && word.keyword == Keyword::END {
476
476
break;
477
477
}
478
- // Treat batch delimiter as an end of statement
479
- if expecting_statement_delimiter && dialect_of!(self is MsSqlDialect) {
480
- if let Some(Statement::Go(GoStatement { count: _ })) = stmts.last() {
481
- expecting_statement_delimiter = false;
482
- }
483
- }
484
478
}
485
479
_ => {}
486
480
}
@@ -497,6 +491,8 @@ impl<'a> Parser<'a> {
497
491
// parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
498
492
ConditionalStatements::Sequence { .. } => false,
499
493
},
494
+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
495
+ Statement::Go(_) => false,
500
496
_ => true,
501
497
};
502
498
stmts.push(statement);
You can’t perform that action at this time.
0 commit comments