improved mysql parser.

This commit is contained in:
wenshao
2017-11-03 14:31:16 +08:00
parent 070cc5762d
commit d94b773de9
10 changed files with 509 additions and 290 deletions
@@ -25,14 +25,11 @@ import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public class SQLBlockStatement extends SQLStatementImpl {
private String labelName;
private String endLabel;
private String endLabel;
private List<SQLParameter> parameters = new ArrayList<SQLParameter>();
private List<SQLStatement> statementList = new ArrayList<SQLStatement>();
public SQLStatement exception;
public SQLStatement exception;
private boolean endOfCommit;
public SQLBlockStatement() {
@@ -124,4 +121,12 @@ public class SQLBlockStatement extends SQLStatementImpl {
return null;
}
public boolean isEndOfCommit() {
return endOfCommit;
}
public void setEndOfCommit(boolean value) {
this.endOfCommit = value;
}
}
@@ -35,6 +35,10 @@ public class SQLCommitStatement extends SQLStatementImpl {
private SQLExpr transactionName;
private SQLExpr delayedDurability;
public SQLCommitStatement() {
}
public SQLCommitStatement clone() {
SQLCommitStatement x = new SQLCommitStatement();
x.write = write;