refactor sql parser.

This commit is contained in:
wenshao
2016-09-25 01:10:19 +08:00
parent baab4fede5
commit 3f4bb2b61f
7 changed files with 19 additions and 38 deletions
@@ -30,6 +30,7 @@ public class SQLUpdateStatement extends SQLStatementImpl {
protected SQLTableSource from;
protected SQLTableSource tableSource;
protected List<SQLExpr> returning;
public SQLUpdateStatement(){
@@ -82,6 +83,14 @@ public class SQLUpdateStatement extends SQLStatementImpl {
item.setParent(this);
}
public List<SQLExpr> getReturning() {
if (returning == null) {
returning = new ArrayList<SQLExpr>(2);
}
return returning;
}
public SQLTableSource getFrom() {
return from;
}