@abaplint/runtime 2.3.123 → 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();
@@ -98,10 +98,11 @@ class Table {
98
98
  throw "Table, set error";
99
99
  }
100
100
  this.clear();
101
- for (const a of tab.array()) {
102
- // this clones the values, and add sorting if required
103
- (0, insert_internal_1.insertInternal)({ table: this, data: a });
101
+ if (tab instanceof field_symbol_1.FieldSymbol) {
102
+ tab = tab.getPointer();
104
103
  }
104
+ // this clones the values, and add sorting if required
105
+ (0, insert_internal_1.insertInternal)({ table: this, data: tab, lines: true });
105
106
  }
106
107
  }
107
108
  getHeader() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.123",
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",