Skip to content

Commit

Permalink
change version & fixed java doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Sep 4, 2017
1 parent 9990e07 commit 09524a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/druid/VERSION.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public final class VERSION {

public final static int MajorVersion = 1;
public final static int MinorVersion = 1;
public final static int RevisionVersion = 2;
public final static int RevisionVersion = 3;

public static String getVersionNumber() {
return VERSION.MajorVersion + "." + VERSION.MinorVersion + "." + VERSION.RevisionVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,48 +466,6 @@ public boolean match(String alias_a, String alias_b) {
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;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/alibaba/druid/util/FnvHash.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static long fnv1a_64(char[] chars) {
}

/**
* lower & normalized & fnv_1a_64
* lower and normalized and fnv_1a_64
* @param name
* @return
*/
Expand Down Expand Up @@ -184,7 +184,7 @@ public static long[] fnv1a_64_lower(String[] strings, boolean sort) {
}

/**
* normalized & lower & fnv1a_64_hash
* normalized and lower and fnv1a_64_hash
* @param owner
* @param name
* @return
Expand Down

0 comments on commit 09524a8

Please sign in to comment.