dt-sql-parser 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -266,7 +266,7 @@ export class BasicSQL {
266
266
  }
267
267
  // A boundary consisting of the index of the input.
268
268
  const startIndex = (_e = (_d = startStatement === null || startStatement === void 0 ? void 0 : startStatement.start) === null || _d === void 0 ? void 0 : _d.start) !== null && _e !== void 0 ? _e : 0;
269
- const stopIndex = (_g = (_f = stopStatement === null || stopStatement === void 0 ? void 0 : stopStatement.stop) === null || _f === void 0 ? void 0 : _f.stop) !== null && _g !== void 0 ? _g : inputSlice.length - 1;
269
+ const stopIndex = (_g = (_f = stopStatement === null || stopStatement === void 0 ? void 0 : stopStatement.stop) === null || _f === void 0 ? void 0 : _f.stop) !== null && _g !== void 0 ? _g : inputSlice.length;
270
270
  /**
271
271
  * Save offset of the tokenIndex in the range of input
272
272
  * compared to the tokenIndex in the whole input
@@ -343,6 +343,7 @@ export class BasicSQL {
343
343
  else {
344
344
  if (statementCount > 1) {
345
345
  caretTokenIndex = caretTokenIndex - tokenIndexOffset;
346
+ allTokens = allTokens.slice(tokenIndexOffset);
346
347
  }
347
348
  }
348
349
  let sqlParserIns = this._parser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-sql-parser",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "authors": "DTStack Corporation",
5
5
  "description": "SQL Parsers for BigData, built with antlr4",
6
6
  "keywords": [