提交 21c10b84 authored 作者: Thomas Mueller's avatar Thomas Mueller

Old Oracle outer join syntax bugfix

上级 f999fdd0
...@@ -1782,8 +1782,13 @@ public class Parser { ...@@ -1782,8 +1782,13 @@ public class Parser {
TableFilter rightFilter = rightCol.getTableFilter(); TableFilter rightFilter = rightCol.getTableFilter();
r = new Comparison(session, compareType, r, right); r = new Comparison(session, compareType, r, right);
if (leftFilter != null && rightFilter != null) { if (leftFilter != null && rightFilter != null) {
filters.remove(filters.indexOf(rightFilter)); int idx = filters.indexOf(rightFilter);
leftFilter.addJoin(rightFilter, true, r); if (idx >= 0) {
filters.remove(idx);
leftFilter.addJoin(rightFilter, true, r);
} else {
rightFilter.mapAndAddFilter(r);
}
r = ValueExpression.get(ValueBoolean.get(true)); r = ValueExpression.get(ValueBoolean.get(true));
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论