@abaplint/transpiler 2.7.80 → 2.7.82
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.
|
@@ -52,8 +52,12 @@ class SQLCondTranspiler {
|
|
|
52
52
|
if (fieldName === undefined || sqlin === undefined || source === undefined) {
|
|
53
53
|
throw new Error("SQL Condition, transpiler todo, " + c.concatTokens());
|
|
54
54
|
}
|
|
55
|
+
let pre = "";
|
|
56
|
+
if (c.concatTokens().toUpperCase().includes(" NOT IN ")) {
|
|
57
|
+
pre = "NOT ";
|
|
58
|
+
}
|
|
55
59
|
if (sqlin.getChildren().length === 2) {
|
|
56
|
-
return
|
|
60
|
+
return `${pre}" + abap.expandIN("${fieldName.concatTokens()}", ${source.concatTokens()}) + "`;
|
|
57
61
|
}
|
|
58
62
|
else {
|
|
59
63
|
const cond = [];
|
|
@@ -62,7 +66,7 @@ class SQLCondTranspiler {
|
|
|
62
66
|
const sourc = this.sqlSource(s, traversal, filename, table);
|
|
63
67
|
cond.push(field + " = " + sourc);
|
|
64
68
|
}
|
|
65
|
-
const ret = "( " + cond.join(" OR ") + " )";
|
|
69
|
+
const ret = pre + "( " + cond.join(" OR ") + " )";
|
|
66
70
|
return ret;
|
|
67
71
|
}
|
|
68
72
|
}
|
package/build/src/traversal.js
CHANGED
|
@@ -472,6 +472,13 @@ class Traversal {
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
+
else if (c.get() instanceof abaplint.Expressions.AttributeName
|
|
476
|
+
&& context instanceof abaplint.BasicTypes.DataReference) {
|
|
477
|
+
const type = context.getType();
|
|
478
|
+
if (type instanceof abaplint.BasicTypes.StructureType) {
|
|
479
|
+
context = type.getComponentByName(c.concatTokens());
|
|
480
|
+
}
|
|
481
|
+
}
|
|
475
482
|
}
|
|
476
483
|
return context;
|
|
477
484
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.82",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/chai": "^4.3.5",
|
|
37
37
|
"@types/mocha": "^10.0.1",
|
|
38
|
-
"chai": "^4.3.
|
|
38
|
+
"chai": "^4.3.8",
|
|
39
39
|
"mocha": "^10.2.0",
|
|
40
40
|
"source-map-support": "^0.5.21",
|
|
41
|
-
"typescript": "^5.
|
|
41
|
+
"typescript": "^5.2.2"
|
|
42
42
|
}
|
|
43
43
|
}
|