@abaplint/transpiler 2.10.60 → 2.10.62

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.
@@ -15,7 +15,14 @@ class SelectTranspiler {
15
15
  }
16
16
  const concat = selectStatement.concatTokens().toUpperCase();
17
17
  const from = selectStatement.findFirstExpression(abaplint.Expressions.SQLFromSource)?.concatTokens().toUpperCase();
18
- const intoName = new expressions_1.SQLTargetTranspiler().transpile(selectStatement.findFirstExpression(abaplint.Expressions.SQLTarget), traversal).getCode();
18
+ const sTarget = selectStatement.findFirstExpression(abaplint.Expressions.SQLTarget);
19
+ let intoName = "";
20
+ if (sTarget === undefined) {
21
+ intoName = from.toLowerCase();
22
+ }
23
+ else {
24
+ intoName = new expressions_1.SQLTargetTranspiler().transpile(sTarget, traversal).getCode();
25
+ }
19
26
  // note: this implementation SELECTs everything into memory, which might be bad, and sometimes not correct
20
27
  const targetName = unique_identifier_1.UniqueIdentifier.get();
21
28
  const loopName = unique_identifier_1.UniqueIdentifier.get();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.10.60",
3
+ "version": "2.10.62",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,14 +29,14 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.113.126",
32
+ "@abaplint/core": "^2.113.136",
33
33
  "source-map": "^0.7.4"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/chai": "^4.3.20",
37
37
  "@types/mocha": "^10.0.10",
38
38
  "chai": "^4.5.0",
39
- "mocha": "^11.5.0",
39
+ "mocha": "^11.7.1",
40
40
  "source-map-support": "^0.5.21",
41
41
  "typescript": "^5.8.3"
42
42
  }