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:
@@ -23,6 +23,8 @@ public class SQLSubPartition extends SQLObjectImpl {
|
||||
|
||||
protected SQLPartitionValue values;
|
||||
|
||||
private SQLName tableSpace;
|
||||
|
||||
public SQLName getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -45,10 +47,22 @@ public class SQLSubPartition extends SQLObjectImpl {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
public SQLName getTableSpace() {
|
||||
return tableSpace;
|
||||
}
|
||||
|
||||
public void setTableSpace(SQLName tableSpace) {
|
||||
if (tableSpace != null) {
|
||||
tableSpace.setParent(this);
|
||||
}
|
||||
this.tableSpace = tableSpace;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void accept0(SQLASTVisitor visitor) {
|
||||
if (visitor.visit(this)) {
|
||||
acceptChild(visitor, name);
|
||||
acceptChild(visitor, tableSpace);
|
||||
acceptChild(visitor, values);
|
||||
}
|
||||
visitor.endVisit(this);
|
||||
|
||||
Reference in New Issue
Block a user