#945 - Invalid SQL when using @Aggregation with a fetch() to a ManyToOne - missing columns in GROUP BY

This commit is contained in:
Rob Bygrave
2017-01-12 00:42:27 +13:00
parent d9147327c1
commit 2fa4345742
2 changed files with 15 additions and 0 deletions
@@ -397,6 +397,9 @@ class SqlTreeNodeBean implements SqlTreeNode {
property.appendSelect(ctx, subQuery);
}
}
for (SqlTreeNode aChildren : children) {
aChildren.appendGroupBy(ctx, subQuery);
}
ctx.popTableAlias();
ctx.popJoin();
}