@abaplint/transpiler 2.1.15 → 2.1.18
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/db/index.js
CHANGED
|
@@ -50,7 +50,7 @@ class DatabaseSetup {
|
|
|
50
50
|
}
|
|
51
51
|
let ret = "";
|
|
52
52
|
for (const m of msag.getMessages()) {
|
|
53
|
-
ret += `INSERT INTO t100 VALUES ('E', '${msag.getName()}', '${m.getNumber()}', '${m.getMessage()}');\n`;
|
|
53
|
+
ret += `INSERT INTO t100 VALUES ('E', '${msag.getName()}', '${m.getNumber()}', '${m.getMessage().replace(/\'/g, "''")}');\n`;
|
|
54
54
|
}
|
|
55
55
|
return ret;
|
|
56
56
|
}
|
|
@@ -59,7 +59,8 @@ class SelectTranspiler {
|
|
|
59
59
|
if (node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) {
|
|
60
60
|
const unique = unique_identifier_1.UniqueIdentifier.get();
|
|
61
61
|
const faeName = (_f = (_e = (_d = node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) === null || _d === void 0 ? void 0 : _d.findDirectExpression(abaplint.Expressions.SQLSource)) === null || _e === void 0 ? void 0 : _e.concatTokens()) === null || _f === void 0 ? void 0 : _f.toLowerCase();
|
|
62
|
-
select = select.replace(new RegExp(" " + faeName, "g"), unique);
|
|
62
|
+
select = select.replace(new RegExp(" " + faeName, "g"), " " + unique);
|
|
63
|
+
select = select.replace(unique + ".get().table_line.get()", unique + ".get()"); // there can be only one?
|
|
63
64
|
const code = `if (${faeName}.array().length === 0) {
|
|
64
65
|
throw "FAE, todo, empty table";
|
|
65
66
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"author": "abaplint",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@abaplint/core": "^2.91.
|
|
31
|
+
"@abaplint/core": "^2.91.19",
|
|
32
32
|
"source-map": "^0.7.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|