improved sql parser.

This commit is contained in:
wenshao
2017-06-08 15:16:22 +08:00
parent 41a56b3c92
commit 7c4a43d2c5
29 changed files with 375 additions and 23 deletions
@@ -184,6 +184,8 @@ public class TableStat {
private String name;
private int hash;
public Name(String name){
this.name = name;
}
@@ -193,7 +195,11 @@ public class TableStat {
}
public int hashCode() {
return StringUtils.lowerHashCode(name);
int h = hash;
if (h == 0 && name != null && name.length() > 0) {
hash = h = StringUtils.lowerHashCode(name);
}
return h;
}
public boolean equals(Object o) {