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