mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2196 - SQLException:Column "T0.ID" must be in the GROUP BY list - when findCount with having clause
This commit is contained in:
@@ -151,7 +151,7 @@ public final class SqlTreeBuilder {
|
||||
}
|
||||
|
||||
private String buildGroupByClause() {
|
||||
if (rawSql || !rootNode.isAggregation()) {
|
||||
if (rawSql || (!rootNode.isAggregation() && query.getHavingExpressions() == null)) {
|
||||
return null;
|
||||
}
|
||||
ctx.startGroupBy();
|
||||
|
||||
Reference in New Issue
Block a user