mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user