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:
@@ -98,6 +98,16 @@ public class SQLOrderBy extends SQLObjectImpl {
|
||||
}
|
||||
|
||||
public SQLOrderBy clone() {
|
||||
throw new UnsupportedOperationException();
|
||||
SQLOrderBy x = new SQLOrderBy();
|
||||
|
||||
for (SQLSelectOrderByItem item : items) {
|
||||
SQLSelectOrderByItem item1 = item.clone();
|
||||
item1.setParent(x);
|
||||
x.items.add(item1);
|
||||
}
|
||||
|
||||
x.sibings = sibings;
|
||||
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user