change version & fixed java doc.

This commit is contained in:
wenshao
2017-09-04 15:21:09 +08:00
parent 9990e07aaa
commit 09524a8829
3 changed files with 3 additions and 45 deletions
@@ -466,48 +466,6 @@ public class SQLJoinTableSource extends SQLTableSourceImpl implements SQLReplace
return right.containsAlias(alias_a) && left.containsAlias(alias_b);
}
/**
* a, b left join c ->
*/
// public boolean addCondition(SQLBinaryOpExpr condition, JoinType joinType) {
// if (this.left == null || this.right == null) {
// return false;
// }
//
// if (!(condition.getLeft() instanceof SQLPropertyExpr
// && condition.getRight() instanceof SQLPropertyExpr)) {
// return false;
// }
//
// SQLPropertyExpr left = (SQLPropertyExpr) condition.getLeft();
// SQLPropertyExpr right = (SQLPropertyExpr) condition.getRight();
//
// String leftOwner = left.getOwnernName();
// String rightOwner = right.getOwnernName();
//
// if (this.left.containsAlias(leftOwner) && this.right.containsAlias(rightOwner)) {
// if (this.joinType == joinType) {
// this.addConditionnIfAbsent(condition);
// return true;
// }
//
// if (this.joinType == null || this.joinType == JoinType.COMMA) {
// this.joinType = joinType;
// this.addConditionnIfAbsent(condition);
// return true;
// }
//
// if (this.joinType == JoinType.LEFT_OUTER_JOIN && joinType == JoinType.RIGHT_OUTER_JOIN) {
// if (this.left instanceof SQLJoinTableSource && ((SQLJoinTableSource) this.left).joinType == JoinType.COMMA) {
// SQLJoinTableSource leftJoin = (SQLJoinTableSource) this.left;
//
// }
// }
// }
//
// return false;
// }
//
public boolean conditionContainsTable(String alias) {
if (condition == null) {
return false;