improved sql parser. issue #1416

This commit is contained in:
wenshao
2016-09-17 03:19:32 +08:00
parent 67f0945bcd
commit b6926501e7
6 changed files with 72 additions and 12 deletions
@@ -25,6 +25,7 @@ public class SQLDeleteStatement extends SQLStatementImpl {
protected SQLTableSource tableSource;
protected SQLExpr where;
protected SQLTableSource from;
public SQLDeleteStatement(){
@@ -110,4 +111,14 @@ public class SQLDeleteStatement extends SQLStatementImpl {
visitor.endVisit(this);
}
public SQLTableSource getFrom() {
return from;
}
public void setFrom(SQLTableSource from) {
if (from != null) {
from.setParent(this);
}
this.from = from;
}
}