@abaplint/transpiler 2.1.45 → 2.1.46
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.
|
@@ -96,6 +96,7 @@ class SelectTranspiler {
|
|
|
96
96
|
return keys;
|
|
97
97
|
}
|
|
98
98
|
concatCond(cond, traversal) {
|
|
99
|
+
var _a;
|
|
99
100
|
let ret = "";
|
|
100
101
|
for (const c of cond.getChildren()) {
|
|
101
102
|
if (c instanceof abaplint.Nodes.ExpressionNode
|
|
@@ -103,7 +104,17 @@ class SelectTranspiler {
|
|
|
103
104
|
if (ret !== "") {
|
|
104
105
|
ret += " ";
|
|
105
106
|
}
|
|
106
|
-
if (c.findDirectExpression(abaplint.Expressions.
|
|
107
|
+
if (c.findDirectExpression(abaplint.Expressions.Dynamic)) {
|
|
108
|
+
const chain = (_a = c.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(abaplint.Expressions.FieldChain);
|
|
109
|
+
if (chain) {
|
|
110
|
+
const code = new expressions_1.FieldChainTranspiler(true).transpile(chain, traversal).getCode();
|
|
111
|
+
ret += `" + ${code} + "`;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
throw new Error("SQL Condition, transpiler todo, dyn cond, " + c.concatTokens());
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else if (c.findDirectExpression(abaplint.Expressions.SQLIn)) {
|
|
107
118
|
ret += this.sqlIn(c, traversal);
|
|
108
119
|
}
|
|
109
120
|
else {
|