improve sql parser for informix skip/first clause.

This commit is contained in:
wenshao
2016-10-17 19:22:47 +08:00
parent 4f612ec2e0
commit 82cdd301c4
15 changed files with 359 additions and 31 deletions
@@ -38,6 +38,7 @@ public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery
protected boolean noWait = false;
protected SQLExpr waitTime;
protected SQLExpr first;
protected SQLExpr offset;
public SQLSelectQueryBlock(){
@@ -161,6 +162,17 @@ public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery
this.first = first;
}
public SQLExpr getOffset() {
return offset;
}
public void setOffset(SQLExpr offset) {
if (offset != null) {
offset.setParent(this);
}
this.offset = offset;
}
@Override
protected void accept0(SQLASTVisitor visitor) {
if (visitor.visit(this)) {