improved oracle sql parser support fetch clause. issue #1448

This commit is contained in:
wenshao
2016-10-14 17:48:10 +08:00
parent 27e6b8f9f4
commit 4f612ec2e0
9 changed files with 139 additions and 36 deletions
@@ -37,6 +37,7 @@ public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery
protected boolean forUpdate = false;
protected boolean noWait = false;
protected SQLExpr waitTime;
protected SQLExpr first;
public SQLSelectQueryBlock(){
@@ -142,9 +143,24 @@ public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery
}
public void setWaitTime(SQLExpr waitTime) {
if (waitTime != null) {
waitTime.setParent(this);
}
this.waitTime = waitTime;
}
public SQLExpr getFirst() {
return first;
}
public void setFirst(SQLExpr first) {
if (first != null) {
first.setParent(this);
}
this.first = first;
}
@Override
protected void accept0(SQLASTVisitor visitor) {
if (visitor.visit(this)) {