Turn off field overrides when evaluating a join condition. This is all getting hairy -- sometimes you want FooRecord.BAR_C to point to the field 'under' the override, sometimes you want the actual overide expression. Hrm. Michael feels we probably shouldn't do any field expansion magic past the FROM clause. I am hoping we can preserve some of it in some intuitive way. This is a stop gap measure.
This commit is contained in:
@@ -280,7 +280,9 @@ public abstract class BuildVisitor implements ExpressionVisitor
|
||||
_builder.append(" as ");
|
||||
appendTableAbbreviation(join.getJoinClass());
|
||||
_builder.append(" on ");
|
||||
_ignoreOverrides = true;
|
||||
join.getJoinCondition().accept(this);
|
||||
_ignoreOverrides = false;
|
||||
}
|
||||
|
||||
public void visit (Limit limit)
|
||||
|
||||
Reference in New Issue
Block a user