Use full primary key name in table.field format for getNodeIDs() query when

the node has a manually set subnodeRelation. This allows to remain
non-ambigous even if the subnodeRelation contains a JOIN.
This commit is contained in:
hns 2003-05-09 12:57:17 +00:00
parent e387788b36
commit c71f632966

View file

@ -993,7 +993,8 @@ public final class NodeManager {
if (home.getSubnodeRelation() != null) { if (home.getSubnodeRelation() != null) {
// subnode relation was explicitly set // subnode relation was explicitly set
q = new StringBuffer("SELECT ").append(idfield).append(" FROM ") q = new StringBuffer("SELECT ").append(table).append('.')
.append(idfield).append(" FROM ")
.append(table).append(" ") .append(table).append(" ")
.append(home.getSubnodeRelation()) .append(home.getSubnodeRelation())
.toString(); .toString();