mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1404 - Query.findCount() with query.setDistinct(true) ... doesn't give count distinct SQL query
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user