Add leading space in " WHERE " when composing select statements.
Fixes bug http://www.helma.org/bugs/show_bug.cgi?id=313
This commit is contained in:
parent
babe14b16f
commit
846ff46e1e
1 changed files with 3 additions and 3 deletions
|
@ -1187,7 +1187,7 @@ public final class NodeManager {
|
|||
String idfield = (rel.groupby != null) ? rel.groupby : dbm.getIDField();
|
||||
boolean needsQuotes = dbm.needsQuotes(idfield);
|
||||
|
||||
q.append("WHERE ");
|
||||
q.append(" WHERE ");
|
||||
q.append(dbm.getTableName());
|
||||
q.append(".");
|
||||
q.append(idfield);
|
||||
|
@ -1596,7 +1596,7 @@ public final class NodeManager {
|
|||
|
||||
if (home.getSubnodeRelation() != null && !rel.isComplexReference()) {
|
||||
// combine our key with the constraints in the manually set subnode relation
|
||||
q.append("WHERE ");
|
||||
q.append(" WHERE ");
|
||||
q.append(dbm.getTableName());
|
||||
q.append(".");
|
||||
q.append(rel.accessName);
|
||||
|
@ -1610,7 +1610,7 @@ public final class NodeManager {
|
|||
q.append(rel.buildQuery(home,
|
||||
home.getNonVirtualParent(),
|
||||
kstr,
|
||||
"WHERE ",
|
||||
" WHERE ",
|
||||
false));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue