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.
1 parent d470e72 commit 84562b1Copy full SHA for 84562b1
src/parser/common/basicSQL.ts
@@ -414,7 +414,7 @@ export abstract class BasicSQL<
414
415
// A boundary consisting of the index of the input.
416
const startIndex = startStatement?.start?.start ?? 0;
417
- const stopIndex = stopStatement?.stop?.stop ?? inputSlice.length - 1;
+ const stopIndex = stopStatement?.stop?.stop ?? inputSlice.length;
418
419
/**
420
* Save offset of the tokenIndex in the range of input
@@ -518,6 +518,7 @@ export abstract class BasicSQL<
518
} else {
519
if (statementCount > 1) {
520
caretTokenIndex = caretTokenIndex - tokenIndexOffset;
521
+ allTokens = allTokens.slice(tokenIndexOffset);
522
}
523
524
0 commit comments