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