@abaplint/runtime 2.5.60 → 2.5.61
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/gt.d.ts +2 -2
- package/build/src/compare/gt.js +1 -1
- package/build/src/statements/delete_internal.js +3 -0
- package/build/src/statements/select.d.ts +2 -2
- package/build/src/statements/select.js +1 -1
- package/build/src/template_formatting.js +1 -1
- package/build/src/types/data_reference.d.ts +1 -0
- package/build/src/types/data_reference.js +5 -0
- package/build/src/types/field_symbol.d.ts +1 -0
- package/build/src/types/field_symbol.js +5 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ABAPObject, Structure, Table } from "../types";
|
|
1
|
+
import { ABAPObject, HashedTable, Structure, Table } from "../types";
|
|
2
2
|
import { ICharacter } from "../types/_character";
|
|
3
3
|
import { INumeric } from "../types/_numeric";
|
|
4
|
-
export declare function gt(left: number | string | ICharacter | INumeric | ABAPObject | Structure | Table, right: number | string | ICharacter | INumeric | ABAPObject | Structure | Table): boolean;
|
|
4
|
+
export declare function gt(left: number | string | ICharacter | INumeric | ABAPObject | Structure | Table | HashedTable, right: number | string | ICharacter | INumeric | ABAPObject | Structure | Table | HashedTable): boolean;
|
package/build/src/compare/gt.js
CHANGED
|
@@ -16,7 +16,7 @@ function gt(left, right) {
|
|
|
16
16
|
}
|
|
17
17
|
return gt(left, right.getPointer());
|
|
18
18
|
}
|
|
19
|
-
if (left instanceof types_1.Table || right instanceof types_1.Table) {
|
|
19
|
+
if (left instanceof types_1.Table || right instanceof types_1.Table || left instanceof types_1.HashedTable || right instanceof types_1.HashedTable) {
|
|
20
20
|
throw new Error("runtime_todo, gt TABLE");
|
|
21
21
|
}
|
|
22
22
|
if (left instanceof types_1.Hex || right instanceof types_1.Hex) {
|
|
@@ -48,6 +48,9 @@ async function deleteInternal(target, options) {
|
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
if ((options === null || options === void 0 ? void 0 : options.adjacent) === true) {
|
|
51
|
+
if (target instanceof types_1.HashedTable) {
|
|
52
|
+
throw new Error("delete adjacent, hashed table");
|
|
53
|
+
}
|
|
51
54
|
const array = target.array();
|
|
52
55
|
for (let index = array.length - 1; index > 0; index--) {
|
|
53
56
|
const prev = array[index - 1];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Context } from "../context";
|
|
2
2
|
import { SelectDatabaseOptions, SelectRuntimeOptions } from "../db/db";
|
|
3
|
-
import { FieldSymbol, Structure, Table } from "../types";
|
|
3
|
+
import { FieldSymbol, HashedTable, Structure, Table } from "../types";
|
|
4
4
|
export declare class SelectDatabase {
|
|
5
5
|
private readonly context;
|
|
6
6
|
constructor(context: Context);
|
|
7
|
-
select(target: Structure | Table | FieldSymbol, input: SelectDatabaseOptions, runtimeOptions?: SelectRuntimeOptions): Promise<void>;
|
|
7
|
+
select(target: Structure | Table | HashedTable | FieldSymbol, input: SelectDatabaseOptions, runtimeOptions?: SelectRuntimeOptions): Promise<void>;
|
|
8
8
|
}
|
|
@@ -36,7 +36,7 @@ class SelectDatabase {
|
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
abap.statements.moveCorresponding(new types_1.Structure(result), target);
|
|
38
38
|
}
|
|
39
|
-
else if (target instanceof types_1.Table) {
|
|
39
|
+
else if (target instanceof types_1.Table || target instanceof types_1.HashedTable) {
|
|
40
40
|
for (const row of rows) {
|
|
41
41
|
const targetRow = (0, clone_1.clone)(target.getRowType());
|
|
42
42
|
if (targetRow instanceof types_1.Structure) {
|
|
@@ -10,7 +10,7 @@ function templateFormatting(source, options) {
|
|
|
10
10
|
}
|
|
11
11
|
return templateFormatting(source.getPointer(), options);
|
|
12
12
|
}
|
|
13
|
-
else if (source instanceof types_1.Table) {
|
|
13
|
+
else if (source instanceof types_1.Table || source instanceof types_1.HashedTable) {
|
|
14
14
|
throw new Error("STRG_ILLEGAL_DATA_TYPE");
|
|
15
15
|
}
|
|
16
16
|
else if (source instanceof types_1.Character) {
|
|
@@ -42,6 +42,11 @@ class DataReference {
|
|
|
42
42
|
// @ts-ignore
|
|
43
43
|
return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.array();
|
|
44
44
|
}
|
|
45
|
+
getLength() {
|
|
46
|
+
var _a;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.getLength();
|
|
49
|
+
}
|
|
45
50
|
set(value) {
|
|
46
51
|
var _a;
|
|
47
52
|
if (value instanceof DataReference) {
|
|
@@ -87,6 +87,11 @@ class FieldSymbol {
|
|
|
87
87
|
// @ts-ignore
|
|
88
88
|
return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.array();
|
|
89
89
|
}
|
|
90
|
+
getLength() {
|
|
91
|
+
var _a;
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.getLength();
|
|
94
|
+
}
|
|
90
95
|
set(value) {
|
|
91
96
|
var _a;
|
|
92
97
|
(_a = this.pointer) === null || _a === void 0 ? void 0 : _a.set(value);
|