@abaplint/runtime 2.7.118 → 2.7.120

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.insertDatabase = exports.toValue = void 0;
4
4
  const prefix_1 = require("../prefix");
5
+ const types_1 = require("../types");
5
6
  function toValue(value) {
6
7
  if (typeof value === "string") {
7
8
  // postgres requires ' for values
@@ -37,9 +38,13 @@ async function insertDatabase(table, options, context) {
37
38
  }
38
39
  const structure = options.values.get();
39
40
  for (const k of Object.keys(structure)) {
41
+ const field = structure[k];
42
+ if (field instanceof types_1.Structure) {
43
+ // then its a group, ignore
44
+ continue;
45
+ }
40
46
  columns.push(k);
41
- const value = structure[k].get();
42
- values.push(toValue(value));
47
+ values.push(toValue(field.get()));
43
48
  }
44
49
  if (typeof table !== "string") {
45
50
  table = table.get().trimEnd().toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.118",
3
+ "version": "2.7.120",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",