提交 371783fa authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unused fromOuter parameter from Parser.readJoin()

上级 623788c4
...@@ -1369,7 +1369,7 @@ public class Parser { ...@@ -1369,7 +1369,7 @@ public class Parser {
} else { } else {
TableFilter top; TableFilter top;
top = readTableFilter(); top = readTableFilter();
top = readJoin(top, false, false); top = readJoin(top, false);
top = getNested(top); top = getNested(top);
read(")"); read(")");
alias = readFromAlias(null); alias = readFromAlias(null);
...@@ -1717,7 +1717,7 @@ public class Parser { ...@@ -1717,7 +1717,7 @@ public class Parser {
return command; return command;
} }
private TableFilter readJoin(TableFilter top, boolean nested, boolean fromOuter) { private TableFilter readJoin(TableFilter top, boolean nested) {
boolean joined = false; boolean joined = false;
TableFilter last = top; TableFilter last = top;
while (true) { while (true) {
...@@ -1727,7 +1727,7 @@ public class Parser { ...@@ -1727,7 +1727,7 @@ public class Parser {
read("JOIN"); read("JOIN");
// the right hand side is the 'inner' table usually // the right hand side is the 'inner' table usually
join = readTableFilter(); join = readTableFilter();
join = readJoin(join, nested, true); join = readJoin(join, nested);
Expression on = null; Expression on = null;
if (readIf("ON")) { if (readIf("ON")) {
on = readExpression(); on = readExpression();
...@@ -1739,7 +1739,7 @@ public class Parser { ...@@ -1739,7 +1739,7 @@ public class Parser {
readIf("OUTER"); readIf("OUTER");
read("JOIN"); read("JOIN");
join = readTableFilter(); join = readTableFilter();
join = readJoin(join, true, true); join = readJoin(join, true);
Expression on = null; Expression on = null;
if (readIf("ON")) { if (readIf("ON")) {
on = readExpression(); on = readExpression();
...@@ -1750,7 +1750,7 @@ public class Parser { ...@@ -1750,7 +1750,7 @@ public class Parser {
} else if (readIf("INNER")) { } else if (readIf("INNER")) {
read("JOIN"); read("JOIN");
join = readTableFilter(); join = readTableFilter();
top = readJoin(top, false, false); top = readJoin(top, false);
Expression on = null; Expression on = null;
if (readIf("ON")) { if (readIf("ON")) {
on = readExpression(); on = readExpression();
...@@ -1758,7 +1758,7 @@ public class Parser { ...@@ -1758,7 +1758,7 @@ public class Parser {
top.addJoin(join, false, false, on); top.addJoin(join, false, false, on);
} else if (readIf("JOIN")) { } else if (readIf("JOIN")) {
join = readTableFilter(); join = readTableFilter();
top = readJoin(top, false, false); top = readJoin(top, false);
Expression on = null; Expression on = null;
if (readIf("ON")) { if (readIf("ON")) {
on = readExpression(); on = readExpression();
...@@ -2149,7 +2149,7 @@ public class Parser { ...@@ -2149,7 +2149,7 @@ public class Parser {
} }
private void parseJoinTableFilter(TableFilter top, final Select command) { private void parseJoinTableFilter(TableFilter top, final Select command) {
top = readJoin(top, false, top.isJoinOuter()); top = readJoin(top, false);
command.addTableFilter(top, true); command.addTableFilter(top, true);
boolean isOuter = false; boolean isOuter = false;
while (true) { while (true) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论