Fix clone() bug in SQLJoinTableSource

Before this fix, the join condition is not properly cloned but is rather being referenced, so when an AST is cloned, source and target ASTs will share the same join condition node.
This commit is contained in:
Chuzhe
2020-04-13 21:29:18 +08:00
committed by GitHub
parent 52fee1017c
commit 68c9c73677
@@ -271,7 +271,7 @@ public class SQLJoinTableSource extends SQLTableSourceImpl implements SQLReplace
}
if(condition != null){
x.setCondition(condition);
x.setCondition(condition.clone());
}
for (SQLExpr item : using) {