#1753 - use selectId() for findCount() with Formula properties

This commit is contained in:
rob bygrave committed 2019-07-15 19:04:43 +12:00
1 parent 496672b394
commit 7d37c6cfd8
2 files changed
+7 -12

No files matched your search

@@ -264,12 +264,7 @@ class CQueryBuilder {
boolean countDistinct = query.isDistinct();
if (!countDistinct) {
// minimise select clause for standard count
if (manyWhereJoins.isFormulaWithJoin()) {
// Note that this is not yet optimal (split and join)
query.select(String.join(",", manyWhereJoins.getFormulaJoinProperties()));
} else {
query.setSelectId();
}
query.setSelectId();
}
CQueryPredicates predicates = new CQueryPredicates(binder, request);