mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser, bug fixed for parent is null
This commit is contained in:
@@ -76,6 +76,13 @@ public class SQLPartition extends SQLObjectImpl {
|
||||
public List<SQLSubPartition> getSubPartitions() {
|
||||
return subPartitions;
|
||||
}
|
||||
|
||||
public void addSubPartition(SQLSubPartition partition) {
|
||||
if (partition != null) {
|
||||
partition.setParent(this);
|
||||
}
|
||||
this.subPartitions.add(partition);
|
||||
}
|
||||
|
||||
public SQLExpr getIndexDirectory() {
|
||||
return indexDirectory;
|
||||
|
||||
Reference in New Issue
Block a user