mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
change version & fixed java doc.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user