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:
parent
e387788b36
commit
c71f632966
1 changed files with 2 additions and 1 deletions
|
@ -993,7 +993,8 @@ public final class NodeManager {
|
|||
|
||||
if (home.getSubnodeRelation() != null) {
|
||||
// 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(home.getSubnodeRelation())
|
||||
.toString();
|
||||
|
|
Loading…
Add table
Reference in a new issue