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