mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql parser improved db2 support
This commit is contained in:
@@ -25,6 +25,9 @@ public class SQLOver extends SQLObjectImpl {
|
||||
protected final List<SQLExpr> partitionBy = new ArrayList<SQLExpr>();
|
||||
protected SQLOrderBy orderBy;
|
||||
|
||||
// for db2
|
||||
protected SQLExpr of;
|
||||
|
||||
public SQLOver(){
|
||||
|
||||
}
|
||||
@@ -38,6 +41,7 @@ public class SQLOver extends SQLObjectImpl {
|
||||
if (visitor.visit(this)) {
|
||||
acceptChild(visitor, this.partitionBy);
|
||||
acceptChild(visitor, this.orderBy);
|
||||
acceptChild(visitor, this.of);
|
||||
}
|
||||
visitor.endVisit(this);
|
||||
}
|
||||
@@ -53,6 +57,17 @@ public class SQLOver extends SQLObjectImpl {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
|
||||
public SQLExpr getOf() {
|
||||
return of;
|
||||
}
|
||||
|
||||
public void setOf(SQLExpr of) {
|
||||
if (of != null) {
|
||||
of.setParent(this);
|
||||
}
|
||||
this.of = of;
|
||||
}
|
||||
|
||||
public List<SQLExpr> getPartitionBy() {
|
||||
return partitionBy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user