Details
Details
Assignee
Brad Wood
Brad WoodReporter
Brad Wood
Brad WoodLabels
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
Priority
Created 1 December 2022 at 04:17
Updated 1 December 2022 at 18:52
A
HAVING
clause should be allowed on any aggregate select, not just ones with aGROUP BY
.qry = queryNew('col','varchar') result = queryExecute(sql=" SELECT count(1) FROM qry having count(1) = 0", params={}, options={dbtype="query"} );
Note, a non-grouped aggregate select only returns one row so the
HAVING
would only ever be applied to that one grouped row. If theHAVING
does not match no rows would be returned.Note, while Adobe CF allows a
HAVING
clause in this context, its behavior differs due to this outstanding bug:https://tracker.adobe.com/#/view/CF-4211230