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:
@@ -79,4 +79,23 @@ public class SQLPartitionByRange extends SQLPartitionBy {
|
||||
visitor.endVisit(this);
|
||||
}
|
||||
|
||||
public SQLPartitionByRange clone() {
|
||||
SQLPartitionByRange x = new SQLPartitionByRange();
|
||||
|
||||
if (expr != null) {
|
||||
x.setExpr(expr.clone());
|
||||
}
|
||||
|
||||
if (interval != null) {
|
||||
x.setInterval(interval.clone());
|
||||
}
|
||||
|
||||
for (SQLName column : columns) {
|
||||
SQLName c2 = column.clone();
|
||||
c2.setParent(x);
|
||||
x.columns.add(c2);
|
||||
}
|
||||
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user