mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
modify sql wall rule
This commit is contained in:
@@ -34,18 +34,14 @@ public class SQLBetweenExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public SQLBetweenExpr(SQLExpr testExpr, SQLExpr beginExpr, SQLExpr endExpr){
|
||||
|
||||
this.testExpr = testExpr;
|
||||
this.beginExpr = beginExpr;
|
||||
this.endExpr = endExpr;
|
||||
setTestExpr(testExpr);
|
||||
setBeginExpr(beginExpr);
|
||||
setEndExpr(endExpr);
|
||||
}
|
||||
|
||||
public SQLBetweenExpr(SQLExpr testExpr, boolean not, SQLExpr beginExpr, SQLExpr endExpr){
|
||||
|
||||
this.testExpr = testExpr;
|
||||
this(testExpr, beginExpr, endExpr);
|
||||
this.not = not;
|
||||
this.beginExpr = beginExpr;
|
||||
this.endExpr = endExpr;
|
||||
}
|
||||
|
||||
public void output(StringBuffer buf) {
|
||||
@@ -74,6 +70,9 @@ public class SQLBetweenExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public void setTestExpr(SQLExpr testExpr) {
|
||||
if (testExpr != null) {
|
||||
testExpr.setParent(this);
|
||||
}
|
||||
this.testExpr = testExpr;
|
||||
}
|
||||
|
||||
@@ -90,6 +89,9 @@ public class SQLBetweenExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public void setBeginExpr(SQLExpr beginExpr) {
|
||||
if (beginExpr != null) {
|
||||
beginExpr.setParent(this);
|
||||
}
|
||||
this.beginExpr = beginExpr;
|
||||
}
|
||||
|
||||
@@ -98,6 +100,9 @@ public class SQLBetweenExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public void setEndExpr(SQLExpr endExpr) {
|
||||
if (endExpr != null) {
|
||||
endExpr.setParent(this);
|
||||
}
|
||||
this.endExpr = endExpr;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,7 @@ public class SQLQueryExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public SQLQueryExpr(SQLSelect select){
|
||||
|
||||
this.subQuery = select;
|
||||
setSubQuery(select);
|
||||
}
|
||||
|
||||
public SQLSelect getSubQuery() {
|
||||
@@ -40,6 +39,9 @@ public class SQLQueryExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public void setSubQuery(SQLSelect subQuery) {
|
||||
if (subQuery != null) {
|
||||
subQuery.setParent(this);
|
||||
}
|
||||
this.subQuery = subQuery;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user