bug fixed for sql parser, for issue #2773

This commit is contained in:
wenshao
2018-08-28 17:38:17 +08:00
parent c82c70617c
commit e92e385609
2 changed files with 69 additions and 5 deletions
@@ -33,17 +33,22 @@ public final class SQLNotExpr extends SQLExprImpl implements Serializable {
}
public SQLNotExpr(SQLExpr expr){
this.expr = expr;
public SQLNotExpr(SQLExpr x){
if (x != null) {
x.setParent(this);
}
this.expr = x;
}
public SQLExpr getExpr() {
return this.expr;
}
public void setExpr(SQLExpr expr) {
this.expr = expr;
public void setExpr(SQLExpr x) {
if (x != null) {
x.setParent(this);
}
this.expr = x;
}
@Override