mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
当sql有order by语句时, 分页结果sql中, join语句丢失on的条件
This commit is contained in:
@@ -245,6 +245,10 @@ public class SQLJoinTableSource extends SQLTableSourceImpl implements SQLReplace
|
||||
x.setRight(right.clone());
|
||||
}
|
||||
|
||||
if(condition != null){
|
||||
x.setCondition(condition);
|
||||
}
|
||||
|
||||
for (SQLExpr item : using) {
|
||||
SQLExpr item2 = item.clone();
|
||||
item2.setParent(x);
|
||||
|
||||
Reference in New Issue
Block a user