mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor sql parser.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user