@abaplint/core 2.113.177 → 2.113.180
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/abap/2_statements/expressions/sql_compare.js +1 -1
- package/build/src/abap/2_statements/expressions/sql_field_list.js +1 -1
- package/build/src/abap/2_statements/expressions/sql_field_list_loop.js +2 -2
- package/build/src/abap/2_statements/expressions/sql_source.js +1 -1
- package/build/src/abap/2_statements/expressions/sql_source_simple.js +1 -1
- package/build/src/abap/2_statements/expressions/sql_target.js +1 -1
- package/build/src/abap/5_syntax/expressions/select.js +8 -2
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ class SQLCompare extends combi_1.Expression {
|
|
|
16
16
|
const sub = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("ALL", "ANY", "SOME")), (0, combi_1.altPrio)(subSelect, subSelectDouble));
|
|
17
17
|
const arith = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/"), _1.SQLFieldName)));
|
|
18
18
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
19
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
|
|
19
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
|
|
20
20
|
const rett = (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLFunction, _1.ConstantString, (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLPath, _1.SQLFieldName), (0, combi_1.optPrio)(arith)), at), (0, combi_1.altPrio)((0, combi_1.seq)(_1.SQLCompareOperator, (0, combi_1.altPrio)(sub, source)), (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)(_1.SQLIn, like, between)), nul));
|
|
21
21
|
const exists = (0, combi_1.seq)("EXISTS", subSelect);
|
|
22
22
|
return (0, combi_1.altPrio)(exists, _1.Dynamic, rett);
|
|
@@ -8,7 +8,7 @@ const tokens_1 = require("../../1_lexer/tokens");
|
|
|
8
8
|
class SQLFieldList extends combi_1.Expression {
|
|
9
9
|
getRunnable() {
|
|
10
10
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), _1.SQLFieldName, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
11
|
-
const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)));
|
|
11
|
+
const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)), version_1.Version.OpenABAP);
|
|
12
12
|
const old = (0, combi_1.starPrio)(_1.SQLField);
|
|
13
13
|
return (0, combi_1.altPrio)("*", _1.Dynamic, (0, combi_1.seq)(_1.SQLField, (0, combi_1.alt)(nev, old)), paren);
|
|
14
14
|
}
|
|
@@ -9,10 +9,10 @@ const tokens_1 = require("../../1_lexer/tokens");
|
|
|
9
9
|
// loop must include one field from the database table
|
|
10
10
|
class SQLFieldListLoop extends combi_1.Expression {
|
|
11
11
|
getRunnable() {
|
|
12
|
-
const comma = (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp05, ","));
|
|
12
|
+
const comma = (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp05, ",", version_1.Version.OpenABAP));
|
|
13
13
|
const as = (0, combi_1.seq)("AS", _1.SQLAsName);
|
|
14
14
|
const someField = (0, combi_1.seq)(_1.SQLField, comma);
|
|
15
|
-
const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2));
|
|
15
|
+
const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
|
|
16
16
|
const fieldList = (0, combi_1.seq)((0, combi_1.star)(someField), (0, combi_1.alt)(_1.SQLFieldName, abap, sql_path_1.SQLPath, _1.Constant), (0, combi_1.optPrio)(as), comma, (0, combi_1.star)(someField));
|
|
17
17
|
const fields = (0, combi_1.alt)("*", _1.Dynamic, fieldList);
|
|
18
18
|
return fields;
|
|
@@ -8,7 +8,7 @@ const _1 = require(".");
|
|
|
8
8
|
class SQLSource extends combi_1.Expression {
|
|
9
9
|
getRunnable() {
|
|
10
10
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
11
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
|
|
11
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
|
|
12
12
|
return (0, combi_1.altPrio)(_1.SQLAliasField, _1.SimpleSource3, at);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ const _1 = require(".");
|
|
|
9
9
|
class SQLSourceSimple extends combi_1.Expression {
|
|
10
10
|
getRunnable() {
|
|
11
11
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
12
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.alt)(_1.SimpleSource3, paren)));
|
|
12
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.alt)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
|
|
13
13
|
return (0, combi_1.alt)(_1.SimpleSource3, at);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -8,7 +8,7 @@ const _1 = require(".");
|
|
|
8
8
|
class SQLTarget extends combi_1.Expression {
|
|
9
9
|
getRunnable() {
|
|
10
10
|
const n = (0, combi_1.ver)(version_1.Version.v754, "NEW");
|
|
11
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.opt)(n), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.tok)(tokens_1.At)), _1.Target));
|
|
11
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.opt)(n), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.tok)(tokens_1.At)), _1.Target), version_1.Version.OpenABAP);
|
|
12
12
|
return (0, combi_1.altPrio)(at, _1.Target);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -228,11 +228,17 @@ class Select {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
static buildStructureType(fields, dbSources, scope) {
|
|
231
|
-
var _a;
|
|
231
|
+
var _a, _b, _c;
|
|
232
232
|
if (fields.length === 1 && dbSources.length === 1) {
|
|
233
233
|
const dbType = (_a = dbSources[0]) === null || _a === void 0 ? void 0 : _a.parseType(scope.getRegistry());
|
|
234
234
|
if (dbType === undefined) {
|
|
235
|
-
|
|
235
|
+
const name = ((_b = dbSources[0]) === null || _b === void 0 ? void 0 : _b.getName()) || "buildStructureTypeError";
|
|
236
|
+
if (scope.getRegistry().inErrorNamespace(name) === true) {
|
|
237
|
+
return new basic_1.UnknownType("Select, " + name + " not found");
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
return basic_1.VoidType.get((_c = dbSources[0]) === null || _c === void 0 ? void 0 : _c.getName());
|
|
241
|
+
}
|
|
236
242
|
}
|
|
237
243
|
if (fields[0].code === "*") {
|
|
238
244
|
return dbType;
|
package/build/src/registry.js
CHANGED