FIX: @Formula on @ManyToOne produces SQLException ... fix appends missing FROM clause for formula joins #1299

This commit is contained in:
Roland Praml
2018-03-02 11:43:08 +13:00
committed by Rob Bygrave
parent 11e180aa3f
commit 021d57f4b2
5 changed files with 66 additions and 3 deletions
@@ -531,7 +531,10 @@ class SqlTreeNodeBean implements SqlTreeNode {
*/
@Override
public void appendFrom(DbSqlContext ctx, SqlJoinType joinType) {
if (nodeBeanProp != null && nodeBeanProp.isFormula()) {
// add joins for formula beans
nodeBeanProp.appendFrom(ctx, joinType);
}
ctx.pushJoin(prefix);
ctx.pushTableAlias(prefix);