sql parser improved db2 support

This commit is contained in:
高铁
2016-03-18 16:34:02 +08:00
parent 793658499e
commit bf1ad5da0c
5 changed files with 122 additions and 0 deletions
@@ -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;
}