rejectGroupingInScalar

fun rejectGroupingInScalar(fn: String, stmt: Statement)(source)

Rejects a GROUP BY / HAVING clause in a method that reads a single scalar row (count*, findOne*, exists*). Such a query returns one row per group, but these methods only read the first row — so grouping would silently yield the wrong result. Non-plain selects are skipped.