mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user