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.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2199 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
zell
2007-08-21 19:06:55 +00:00
parent aec84a3432
commit 2a9afb6bc5
@@ -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)