@abaplint/core 2.115.9 → 2.115.10
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.
|
@@ -14,6 +14,7 @@ const sql_order_by_1 = require("./sql_order_by");
|
|
|
14
14
|
const dynamic_1 = require("./dynamic");
|
|
15
15
|
const _reference_1 = require("../_reference");
|
|
16
16
|
const _syntax_input_1 = require("../_syntax_input");
|
|
17
|
+
const version_1 = require("../../../version");
|
|
17
18
|
const isSimple = /^\w+$/;
|
|
18
19
|
class Select {
|
|
19
20
|
static runSyntax(node, input, skipImplicitInto = false) {
|
|
@@ -265,6 +266,16 @@ class Select {
|
|
|
265
266
|
if (field) {
|
|
266
267
|
return field;
|
|
267
268
|
}
|
|
269
|
+
else if (fields[0].code === "COUNT(*)") {
|
|
270
|
+
if (scope.getVersion() >= version_1.Version.v750
|
|
271
|
+
|| scope.getVersion() === version_1.Version.OpenABAP
|
|
272
|
+
|| scope.getVersion() === version_1.Version.Cloud) {
|
|
273
|
+
return new basic_1.Integer8Type();
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
return basic_1.IntegerType.get();
|
|
277
|
+
}
|
|
278
|
+
}
|
|
268
279
|
else {
|
|
269
280
|
// todo: aggregated/calculated values
|
|
270
281
|
return basic_1.VoidType.get("SELECT_todo11");
|
package/build/src/registry.js
CHANGED