@abaplint/transpiler 2.11.37 → 2.11.38
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.
|
@@ -38,10 +38,6 @@ class SelectTranspiler {
|
|
|
38
38
|
if (from) {
|
|
39
39
|
select += new sql_from_1.SQLFromTranspiler().transpile(from, traversal).getCode();
|
|
40
40
|
}
|
|
41
|
-
const groupBy = node.findFirstExpression(abaplint.Expressions.SQLGroupBy);
|
|
42
|
-
if (groupBy) {
|
|
43
|
-
select += new sql_group_by_1.SQLGroupByTranspiler().transpile(groupBy, traversal).getCode();
|
|
44
|
-
}
|
|
45
41
|
const { table, keys } = this.findTable(node, traversal);
|
|
46
42
|
let where = undefined;
|
|
47
43
|
for (const sqlCond of node.findAllExpressions(abaplint.Expressions.SQLCond)) {
|
|
@@ -52,6 +48,10 @@ class SelectTranspiler {
|
|
|
52
48
|
if (where) {
|
|
53
49
|
select += "WHERE " + new expressions_1.SQLCondTranspiler().transpile(where, traversal, table).getCode() + " ";
|
|
54
50
|
}
|
|
51
|
+
const groupBy = node.findFirstExpression(abaplint.Expressions.SQLGroupBy);
|
|
52
|
+
if (groupBy) {
|
|
53
|
+
select += new sql_group_by_1.SQLGroupByTranspiler().transpile(groupBy, traversal).getCode() + " ";
|
|
54
|
+
}
|
|
55
55
|
const upTo = node.findFirstExpression(abaplint.Expressions.SQLUpTo);
|
|
56
56
|
if (upTo) {
|
|
57
57
|
const s = upTo.findFirstExpression(abaplint.Expressions.SimpleSource3);
|