Closed movedoa closed 7 months ago
Makes sense, and very quick development. Added to the backlog.
Will be limited to FOR statement with a single buffer in the query. Running the rule on various codebases showed FP with this kind of query (on sp2k):
for each customer, first invoice of customer [break] by invoicedate
Included in 2.26.0
FOR FIRST/LAST with a BY does not honor the BY statement, the records don't get sorted. There should be a rule to detect this, FOR FIRST/LAST should never be used in combination with BY. Always use FOR EACH and LEAVE.
See: https://documentation.progress.com/output/ua/OpenEdge_latest/pdsoe/PLUGINS_ROOT/com.openedge.pdt.langref.help/rfi1424919813003.html