improved sql parser.

This commit is contained in:
wenshao
2017-10-20 14:47:02 +08:00
parent 7715c7ee15
commit bb2bbd833c
11 changed files with 588 additions and 40 deletions
@@ -44,13 +44,13 @@ public class SQLCreateFunctionStatement extends SQLStatementImpl implements SQLC
// for mysql
private String comment;
private boolean deterministic = false;
private boolean parallelEnable;
private boolean aggregate;
private SQLName using;
private boolean pipelined;
private boolean resultCache;
private String wrappedSource;
public SQLCreateFunctionStatement clone() {
SQLCreateFunctionStatement x = new SQLCreateFunctionStatement();
@@ -257,4 +257,12 @@ public class SQLCreateFunctionStatement extends SQLStatementImpl implements SQLC
public void setResultCache(boolean resultCache) {
this.resultCache = resultCache;
}
public String getWrappedSource() {
return wrappedSource;
}
public void setWrappedSource(String wrappedSource) {
this.wrappedSource = wrappedSource;
}
}
@@ -46,6 +46,8 @@ public class SQLCreateProcedureStatement extends SQLStatementImpl implements SQL
private boolean readSqlData;
private boolean modifiesSqlData;
private String wrappedSource;
@Override
public void accept0(SQLASTVisitor visitor) {
if (visitor.visit(this)) {
@@ -176,4 +178,12 @@ public class SQLCreateProcedureStatement extends SQLStatementImpl implements SQL
return null;
}
public String getWrappedSource() {
return wrappedSource;
}
public void setWrappedSource(String wrappedSource) {
this.wrappedSource = wrappedSource;
}
}