@abaplint/runtime 2.11.72 → 2.11.74

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.
@@ -9,9 +9,13 @@ async function select(target, input, runtimeOptions, context) {
9
9
  if (target.isAssigned() === false) {
10
10
  throw new Error("GETWA_NOT_ASSIGNED");
11
11
  }
12
- // @ts-ignore
13
12
  target = target.getPointer();
14
13
  }
14
+ if (rows.length === 0) {
15
+ abap.builtin.sy.get().dbcnt.set(0);
16
+ abap.builtin.sy.get().subrc.set(4);
17
+ return;
18
+ }
15
19
  if (runtimeOptions?.appending !== true) {
16
20
  if (Array.isArray(target)) {
17
21
  target.forEach(f => f.clear());
@@ -20,11 +24,6 @@ async function select(target, input, runtimeOptions, context) {
20
24
  target?.clear();
21
25
  }
22
26
  }
23
- if (rows.length === 0) {
24
- abap.builtin.sy.get().dbcnt.set(0);
25
- abap.builtin.sy.get().subrc.set(4);
26
- return;
27
- }
28
27
  rowsToTarget(target, rows);
29
28
  if (target === undefined && rows.length === 1) {
30
29
  abap.builtin.sy.get().dbcnt.set(Object.values(rows[0])[0]);
@@ -55,7 +54,6 @@ function rowsToTarget(target, rows) {
55
54
  targetRow.get()[columnName]?.clear();
56
55
  continue;
57
56
  }
58
- // @ts-ignore
59
57
  targetRow.get()[columnName]?.set(row[columnName]);
60
58
  }
61
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.11.72",
3
+ "version": "2.11.74",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",