#1404 - Query.findCount() with query.setDistinct(true) ... doesn't give count distinct SQL query

This commit is contained in:
rob bygrave
2018-06-07 00:32:39 +12:00
parent eca6383dba
commit eba1003c19
9 changed files with 130 additions and 25 deletions
@@ -138,6 +138,11 @@ class SqlTreeNodeBean implements SqlTreeNode {
return false;
}
@Override
public boolean isSingleProperty() {
return properties != null && properties.length == 1 && children.length == 0;
}
@Override
public ScalarType<?> getSingleAttributeScalarType() {
if (properties == null || properties.length == 0) {