@abaplint/core 2.110.0 → 2.110.1
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.
|
@@ -7,7 +7,10 @@ const cds_association_1 = require("./cds_association");
|
|
|
7
7
|
const cds_join_1 = require("./cds_join");
|
|
8
8
|
class CDSSelect extends combi_1.Expression {
|
|
9
9
|
getRunnable() {
|
|
10
|
-
|
|
10
|
+
const fields = (0, combi_1.opt)((0, combi_1.seq)((0, combi_1.star)((0, combi_1.seq)(_1.CDSElement, ",")), _1.CDSElement));
|
|
11
|
+
const distinct = (0, combi_1.str)("DISTINCT");
|
|
12
|
+
const elements = (0, combi_1.seq)((0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"));
|
|
13
|
+
return (0, combi_1.seq)("SELECT", (0, combi_1.opt)(distinct), (0, combi_1.opt)(fields), "FROM", _1.CDSSource, (0, combi_1.opt)(_1.CDSParametersSelect), (0, combi_1.opt)(_1.CDSAs), (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.star)(cds_association_1.CDSAssociation), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.opt)(elements), (0, combi_1.opt)(_1.CDSGroupBy), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)((0, combi_1.seq)("UNION", (0, combi_1.opt)("ALL"), CDSSelect)));
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
16
|
exports.CDSSelect = CDSSelect;
|
package/build/src/registry.js
CHANGED
|
@@ -413,7 +413,7 @@ ENDIF.`,
|
|
|
413
413
|
const children = statementNode.getChildren();
|
|
414
414
|
const sourceString = children[1].concatTokens();
|
|
415
415
|
const targetString = children[3].concatTokens();
|
|
416
|
-
let operator = children[2].concatTokens();
|
|
416
|
+
let operator = children[2].concatTokens().toUpperCase();
|
|
417
417
|
if (operator === "TO") {
|
|
418
418
|
operator = " = ";
|
|
419
419
|
}
|