bug fixed for sql parser OutputVisitor.

This commit is contained in:
wenshao
2017-01-21 13:17:45 +08:00
parent 55165e2f22
commit a9149f4730
5 changed files with 103 additions and 6 deletions
@@ -33,7 +33,7 @@ public class SQLUnaryExpr extends SQLExprImpl implements Serializable {
public SQLUnaryExpr(SQLUnaryOperator operator, SQLExpr expr){
this.operator = operator;
this.expr = expr;
this.setExpr(expr);
}
public SQLUnaryOperator getOperator() {
@@ -49,6 +49,9 @@ public class SQLUnaryExpr extends SQLExprImpl implements Serializable {
}
public void setExpr(SQLExpr expr) {
if (expr != null) {
expr.setParent(this);
}
this.expr = expr;
}