Patch from Paul Alexandrow to query for groupby field rather than accessname
in getPropertyNames() if we have a grouped relation.
This commit is contained in:
parent
ed407c3188
commit
4df534a590
1 changed files with 1 additions and 1 deletions
|
@ -1278,7 +1278,7 @@ public final class NodeManager {
|
|||
|
||||
// if we do a groupby query (creating an intermediate layer of groupby nodes),
|
||||
// retrieve the value of that field instead of the primary key
|
||||
String namefield = rel.accessName;
|
||||
String namefield = (rel.groupby == null) ? rel.accessName : rel.groupby;
|
||||
Connection con = rel.otherType.getConnection();
|
||||
String table = rel.otherType.getTableName();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue