@abaplint/runtime 2.7.92 → 2.7.93
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/expand_in.js
CHANGED
|
@@ -8,10 +8,11 @@ function expandIN(fieldName, table) {
|
|
|
8
8
|
let ret = "";
|
|
9
9
|
if (table.array().length === 0) {
|
|
10
10
|
// " NOT IN ()" does not work on postgres
|
|
11
|
-
|
|
11
|
+
// LIKE '%' does not work in snowflake with RTRIM collation
|
|
12
|
+
ret = `true`;
|
|
12
13
|
}
|
|
13
14
|
else {
|
|
14
|
-
ret = fieldName
|
|
15
|
+
ret = `"${fieldName}" IN (`;
|
|
15
16
|
const values = [];
|
|
16
17
|
for (const row of table.array()) {
|
|
17
18
|
if (((_a = row.get().sign) === null || _a === void 0 ? void 0 : _a.get()) !== "I" || ((_b = row.get().option) === null || _b === void 0 ? void 0 : _b.get()) !== "EQ") {
|
|
@@ -20,14 +20,14 @@ class DeleteDatabase {
|
|
|
20
20
|
}
|
|
21
21
|
if (options.table) {
|
|
22
22
|
for (const row of options.table.array()) {
|
|
23
|
-
this.deleteDatabase(table, { from: row });
|
|
23
|
+
await this.deleteDatabase(table, { from: row });
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
else if (options.from) {
|
|
27
27
|
let where = [];
|
|
28
28
|
const structure = options.from.get();
|
|
29
29
|
for (const k of Object.keys(structure)) {
|
|
30
|
-
const str = k + " = " + (0, insert_database_1.toValue)(structure[k].get());
|
|
30
|
+
const str = `"${k.toLowerCase()}"` + " = " + (0, insert_database_1.toValue)(structure[k].get());
|
|
31
31
|
where.push(str);
|
|
32
32
|
}
|
|
33
33
|
where = where.join(" AND ");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.93",
|
|
4
4
|
"description": "Transpiler - Runtime",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/chai": "^4.3.
|
|
32
|
+
"@types/chai": "^4.3.6",
|
|
33
33
|
"@types/mocha": "^10.0.1",
|
|
34
34
|
"chai": "^4.3.8",
|
|
35
35
|
"mocha": "^10.2.0",
|