mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#945 - Invalid SQL when using @Aggregation with a fetch() to a ManyToOne - missing columns in GROUP BY
This commit is contained in:
@@ -397,6 +397,9 @@ class SqlTreeNodeBean implements SqlTreeNode {
|
||||
property.appendSelect(ctx, subQuery);
|
||||
}
|
||||
}
|
||||
for (SqlTreeNode aChildren : children) {
|
||||
aChildren.appendGroupBy(ctx, subQuery);
|
||||
}
|
||||
ctx.popTableAlias();
|
||||
ctx.popJoin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user