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:
hns 2004-08-30 13:18:35 +00:00
parent ed407c3188
commit 4df534a590

View file

@ -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();