@abaplint/core 2.105.11 → 2.105.12
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.
|
@@ -170,6 +170,9 @@ class Source {
|
|
|
170
170
|
while (children.length >= 0) {
|
|
171
171
|
if (first instanceof nodes_1.ExpressionNode && first.get() instanceof Expressions.MethodCallChain) {
|
|
172
172
|
context = new method_call_chain_1.MethodCallChain().runSyntax(first, scope, filename, targetType);
|
|
173
|
+
if (context === undefined) {
|
|
174
|
+
throw new Error("Method has no RETURNING value");
|
|
175
|
+
}
|
|
173
176
|
}
|
|
174
177
|
else if (first instanceof nodes_1.ExpressionNode && first.get() instanceof Expressions.FieldChain) {
|
|
175
178
|
context = new field_chain_1.FieldChain().runSyntax(first, scope, filename, type);
|
|
@@ -23,6 +23,19 @@ class SQLCompare {
|
|
|
23
23
|
}
|
|
24
24
|
sourceType = new sql_source_1.SQLSource().runSyntax(s, scope, filename);
|
|
25
25
|
}
|
|
26
|
+
const sqlin = node.findDirectExpression(Expressions.SQLIn);
|
|
27
|
+
if (sqlin && sqlin.getChildren().length === 2) {
|
|
28
|
+
const insource = node.findFirstExpression(Expressions.SQLSource);
|
|
29
|
+
if (insource) {
|
|
30
|
+
const intype = new sql_source_1.SQLSource().runSyntax(insource, scope, filename);
|
|
31
|
+
if (intype &&
|
|
32
|
+
!(intype instanceof basic_1.VoidType) &&
|
|
33
|
+
!(intype instanceof basic_1.UnknownType) &&
|
|
34
|
+
!(intype instanceof basic_1.TableType)) {
|
|
35
|
+
throw new Error("IN, not a table");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
26
39
|
const fieldName = (_a = node.findDirectExpression(Expressions.SQLFieldName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
27
40
|
if (fieldName && sourceType && token) {
|
|
28
41
|
// check compatibility for rule sql_value_conversion
|
package/build/src/registry.js
CHANGED