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:
@@ -74,4 +74,26 @@ public abstract class SQLPartitionBy extends SQLObjectImpl {
|
||||
public List<SQLName> getStoreIn() {
|
||||
return storeIn;
|
||||
}
|
||||
|
||||
public void cloneTo(SQLPartitionBy x) {
|
||||
if (subPartitionBy != null) {
|
||||
x.setSubPartitionBy(subPartitionBy.clone());
|
||||
}
|
||||
if (partitionsCount != null) {
|
||||
x.setPartitionsCount(partitionsCount.clone());
|
||||
}
|
||||
x.linear = linear;
|
||||
for (SQLPartition p : partitions) {
|
||||
SQLPartition p2 = p.clone();
|
||||
p2.setParent(x);
|
||||
x.partitions.add(p2);
|
||||
}
|
||||
for (SQLName name : storeIn) {
|
||||
SQLName name2 = name.clone();
|
||||
name2.setParent(x);
|
||||
x.storeIn.add(name2);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract SQLPartitionBy clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user