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:
Par Winzell
2007-08-21 19:06:55 +00:00
parent 0cb937b14b
commit 3e96fb1d9a
@@ -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)