improved sql parser.

This commit is contained in:
wenshao
2017-03-13 23:07:26 +08:00
parent 190faee6d2
commit 781f4de2b4
12 changed files with 250 additions and 6 deletions
@@ -405,6 +405,9 @@ public class TableStat {
private boolean having;
private boolean join;
private boolean primaryKey; // for ddl
private boolean unique; //
private Map<String, Object> attributes = new HashMap<String, Object>();
private transient String fullName;
@@ -484,6 +487,22 @@ public class TableStat {
this.having = having;
}
public boolean isPrimaryKey() {
return primaryKey;
}
public void setPrimaryKey(boolean primaryKey) {
this.primaryKey = primaryKey;
}
public boolean isUnique() {
return unique;
}
public void setUnique(boolean unique) {
this.unique = unique;
}
public String getName() {
return name;
}