@abaplint/runtime 2.5.2 → 2.5.4
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.
package/build/src/compare/eq.js
CHANGED
|
@@ -38,10 +38,10 @@ function eq(left, right) {
|
|
|
38
38
|
}
|
|
39
39
|
if (left instanceof types_1.Structure || right instanceof types_1.Structure) {
|
|
40
40
|
if (!(right instanceof types_1.Structure)) {
|
|
41
|
-
return
|
|
41
|
+
return eq(left.getCharacter(), right);
|
|
42
42
|
}
|
|
43
43
|
if (!(left instanceof types_1.Structure)) {
|
|
44
|
-
return
|
|
44
|
+
return eq(left, right.getCharacter());
|
|
45
45
|
}
|
|
46
46
|
const l = left.get();
|
|
47
47
|
const r = right.get();
|
|
@@ -4,7 +4,7 @@ import { INumeric } from "../types/_numeric";
|
|
|
4
4
|
export interface IInsertInternalOptions {
|
|
5
5
|
index?: INumeric;
|
|
6
6
|
initial?: boolean;
|
|
7
|
-
data?: INumeric | ICharacter | Structure | ABAPObject | Table | string;
|
|
7
|
+
data?: INumeric | ICharacter | Structure | ABAPObject | Table | FieldSymbol | string;
|
|
8
8
|
table: Table | FieldSymbol;
|
|
9
9
|
referenceInto?: DataReference;
|
|
10
10
|
assigning?: FieldSymbol;
|
|
@@ -9,8 +9,17 @@ const sort_1 = require("./sort");
|
|
|
9
9
|
function insertInternal(options) {
|
|
10
10
|
var _a, _b, _c, _d, _e;
|
|
11
11
|
if (options.table instanceof types_1.FieldSymbol) {
|
|
12
|
+
if (options.table.getPointer() === undefined) {
|
|
13
|
+
throw new Error("GETWA_NOT_ASSIGNED");
|
|
14
|
+
}
|
|
12
15
|
options.table = options.table.getPointer();
|
|
13
16
|
}
|
|
17
|
+
else if (options.data instanceof types_1.FieldSymbol) {
|
|
18
|
+
if (options.data.getPointer() === undefined) {
|
|
19
|
+
throw new Error("GETWA_NOT_ASSIGNED");
|
|
20
|
+
}
|
|
21
|
+
options.data = options.data.getPointer();
|
|
22
|
+
}
|
|
14
23
|
const tableOptions = options.table.getOptions();
|
|
15
24
|
const isSorted = ((_a = tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.primaryKey) === null || _a === void 0 ? void 0 : _a.type) === types_1.TableAccessType.sorted || ((_b = tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.primaryKey) === null || _b === void 0 ? void 0 : _b.type) === types_1.TableAccessType.hashed;
|
|
16
25
|
if (isSorted) {
|