We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c89ac0 + b68a359 commit 514b141Copy full SHA for 514b141
src/language/sql/statement.ts
@@ -41,7 +41,8 @@ export default class Statement {
41
return true;
42
}
43
44
- if (this.type === StatementType.Create) {
+ // These statements can end with BEGIN, which signifies a block starter
45
+ if ([StatementType.Create, StatementType.Declare].includes(this.type)) {
46
const last = this.tokens[this.tokens.length-1];
47
if (tokenIs(last, `keyword`, `BEGIN`)) {
48
0 commit comments