Possible fix

This commit is contained in:
Roland Praml
2019-07-12 12:59:19 +02:00
parent 84c3008db1
commit 5544a2cc3e
6 changed files with 194 additions and 70 deletions
@@ -265,7 +265,9 @@ class CQueryBuilder {
if (!countDistinct) {
// minimise select clause for standard count
if (manyWhereJoins.isFormulaWithJoin()) {
query.select(manyWhereJoins.getFormulaProperties());
// FIXME: we join the strings here and on the other side we split them again
// this is not yet optimal
query.select(String.join(",",manyWhereJoins.getFormulaJoinProperties()));
} else {
query.setSelectId();
}