improve sql parser

This commit is contained in:
wenshao
2013-08-07 23:59:27 +08:00
parent 37ad0f15f5
commit 65dc02f6d0
14 changed files with 303 additions and 45 deletions
@@ -38,11 +38,14 @@ public class SQLGrantStatement extends SQLStatementImpl {
private boolean adminOption;
private SQLExpr identifiedBy;
@Override
protected void accept0(SQLASTVisitor visitor) {
if (visitor.visit(this)) {
acceptChild(visitor, on);
acceptChild(visitor, to);
acceptChild(visitor, identifiedBy);
}
visitor.endVisit(this);
}
@@ -115,6 +118,14 @@ public class SQLGrantStatement extends SQLStatementImpl {
this.adminOption = adminOption;
}
public SQLExpr getIdentifiedBy() {
return identifiedBy;
}
public void setIdentifiedBy(SQLExpr identifiedBy) {
this.identifiedBy = identifiedBy;
}
public static enum ObjectType {
TABLE, FUNCTION, PROCEDURE, USER
}