Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Andrew Bellenie
Andrew BelleniePriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 12 April 2017 at 13:58
Updated 22 September 2020 at 15:35
See http://trycf.com/gist/028d7bb6b0c69e2a462dcbd07e6944f5/lucee5
When using maxrows on a grouped query-of-queries (using either DISTINCT or GROUP BY) the limit is applied prior to the grouping, returning an incorrect total.
Adding an aggregate operator (seen in third query) is a workaround.