getNodeIDs always outputs its select statement if logsql=true.
Previously the statement was not logged if it contained an error.
This commit is contained in:
parent
083bd0fe80
commit
02fb01a55e
1 changed files with 8 additions and 5 deletions
|
@ -599,18 +599,21 @@ public final class NodeManager {
|
||||||
QueryDataSet qds = null;
|
QueryDataSet qds = null;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
String q = null;
|
||||||
|
|
||||||
if (home.getSubnodeRelation() != null) {
|
if (home.getSubnodeRelation() != null) {
|
||||||
// subnode relation was explicitly set
|
// subnode relation was explicitly set
|
||||||
qds = new QueryDataSet (con, "SELECT "+idfield+" FROM "+table+" "+home.getSubnodeRelation());
|
q = "SELECT "+idfield+" FROM "+table+" "+home.getSubnodeRelation();
|
||||||
} else {
|
} else {
|
||||||
String q = "SELECT "+idfield+" FROM "+table;
|
// let relation object build the query
|
||||||
q += rel.buildQuery (home, home.getNonVirtualParent (), null);
|
q = "SELECT "+idfield+" FROM "+table + rel.buildQuery (home, home.getNonVirtualParent (), null);
|
||||||
qds = new QueryDataSet (con, q);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logSql)
|
if (logSql)
|
||||||
app.logEvent ("### getNodeIDs: "+qds.getSelectString());
|
app.logEvent ("### getNodeIDs: "+q);
|
||||||
|
|
||||||
|
qds = new QueryDataSet (con, q);
|
||||||
|
|
||||||
qds.fetchRecords ();
|
qds.fetchRecords ();
|
||||||
|
|
||||||
// problem: how do we derive a SyntheticKey from a not-yet-persistent Node?
|
// problem: how do we derive a SyntheticKey from a not-yet-persistent Node?
|
||||||
|
|
Loading…
Add table
Reference in a new issue