@abaplint/core 2.113.37 → 2.113.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.
|
@@ -10,6 +10,7 @@ const sql_hints_1 = require("./sql_hints");
|
|
|
10
10
|
const sql_field_list_loop_1 = require("./sql_field_list_loop");
|
|
11
11
|
const sql_up_to_1 = require("./sql_up_to");
|
|
12
12
|
const version_1 = require("../../../version");
|
|
13
|
+
// note: SELECT loops are matched before single statement SELECTs
|
|
13
14
|
class SelectLoop extends combi_1.Expression {
|
|
14
15
|
getRunnable() {
|
|
15
16
|
const where = (0, combi_1.seq)("WHERE", _1.SQLCond);
|
|
@@ -19,7 +20,7 @@ class SelectLoop extends combi_1.Expression {
|
|
|
19
20
|
const packTab = (0, combi_1.seq)(pack, _1.SQLIntoTable);
|
|
20
21
|
const into = (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList);
|
|
21
22
|
const perm = (0, combi_1.per)(_1.SQLFrom, where, sql_up_to_1.SQLUpTo, sql_order_by_1.SQLOrderBy, sql_having_1.SQLHaving, _1.SQLClient, bypass, _1.SQLGroupBy, _1.SQLForAllEntries, (0, combi_1.alt)(tab, into, packTab));
|
|
22
|
-
const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields), (0, combi_1.optPrio)((0, combi_1.seq)(where, into, sql_up_to_1.SQLUpTo)));
|
|
23
|
+
const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields), (0, combi_1.optPrio)((0, combi_1.seq)(where, (0, combi_1.optPrio)(sql_order_by_1.SQLOrderBy), into, sql_up_to_1.SQLUpTo)));
|
|
23
24
|
const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)((0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), sql_field_list_loop_1.SQLFieldListLoop, perm), strict), (0, combi_1.optPrio)(sql_hints_1.SQLHints));
|
|
24
25
|
return ret;
|
|
25
26
|
}
|
package/build/src/registry.js
CHANGED