mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1753 - use selectId() for findCount() with Formula properties
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user