当sql有order by语句时, 分页结果sql中, join语句丢失on的条件

This commit is contained in:
GodzillaHua
2017-09-13 14:42:31 +08:00
parent c49078c650
commit 80d19896e0
2 changed files with 37 additions and 0 deletions
@@ -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);