mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add parent
This commit is contained in:
@@ -42,7 +42,7 @@ public class SQLMethodInvokeExpr extends SQLExprImpl implements Serializable {
|
||||
public SQLMethodInvokeExpr(String methodName, SQLExpr owner){
|
||||
|
||||
this.methodName = methodName;
|
||||
this.owner = owner;
|
||||
setOwner(owner);
|
||||
}
|
||||
|
||||
public String getMethodName() {
|
||||
@@ -58,6 +58,9 @@ public class SQLMethodInvokeExpr extends SQLExprImpl implements Serializable {
|
||||
}
|
||||
|
||||
public void setOwner(SQLExpr owner) {
|
||||
if (owner != null) {
|
||||
owner.setParent(this);
|
||||
}
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user