@abaplint/runtime 2.3.124 → 2.3.125

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.
@@ -12,11 +12,19 @@ class InsertDatabase {
12
12
  throw "insertDatabase, wrong input";
13
13
  }
14
14
  if (options.table !== undefined) {
15
+ let subrc = 0;
16
+ let dbcnt = 0;
15
17
  for (const row of options.table.array()) {
16
18
  await this.insertDatabase(table, { values: row });
19
+ // @ts-ignore
20
+ subrc = Math.max(subrc, abap.builtin.sy.get().subrc.get());
21
+ // @ts-ignore
22
+ dbcnt += abap.builtin.sy.get().dbcnt.get();
17
23
  }
18
- // todo, set sy-subrc
19
- // todo, set sy-dbcnt
24
+ // @ts-ignore
25
+ abap.builtin.sy.get().subrc.set(subrc);
26
+ // @ts-ignore
27
+ abap.builtin.sy.get().dbcnt.set(dbcnt);
20
28
  return;
21
29
  }
22
30
  const structure = options.values.get();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.124",
3
+ "version": "2.3.125",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",