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:
@@ -57,4 +57,23 @@ public abstract class SQLSubPartitionBy extends SQLObjectImpl {
|
||||
return subPartitionTemplate;
|
||||
}
|
||||
|
||||
public void cloneTo(SQLSubPartitionBy x) {
|
||||
if (subPartitionsCount != null) {
|
||||
x.setSubPartitionsCount(subPartitionsCount.clone());
|
||||
}
|
||||
x.linear = linear;
|
||||
for (SQLAssignItem option : options) {
|
||||
SQLAssignItem option2 = option.clone();
|
||||
option2.setParent(x);
|
||||
x.options.add(option2);
|
||||
}
|
||||
|
||||
for (SQLSubPartition p : subPartitionTemplate) {
|
||||
SQLSubPartition p2 = p.clone();
|
||||
p2.setParent(x);
|
||||
x.subPartitionTemplate.add(p2);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract SQLSubPartitionBy clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user