Skip to content

Commit

Permalink
Merge pull request #447 from transtone/fix-subquery
Browse files Browse the repository at this point in the history
fix: 修复子查询与外查询参数顺序
  • Loading branch information
TommyLemon authored Oct 7, 2022
2 parents bcb65f7 + 09dc7c0 commit d92066d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -3787,7 +3787,9 @@ public String getSubqueryString(Subquery subquery) throws Exception {
cfg.setPreparedValueList(new ArrayList<>());
String sql = (range == null || range.isEmpty() ? "" : range) + "(" + cfg.getSQL(isPrepared()) + ") ";

preparedValueList.addAll(cfg.getPreparedValueList());
List<Object> origPreparedValueList = preparedValueList;
preparedValueList = cfg.getPreparedValueList();
preparedValueList.addAll(origPreparedValueList);

return sql;
}
Expand Down

0 comments on commit d92066d

Please sign in to comment.