Skip to content

Commit

Permalink
fix: 修复子查询与外查询参数顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
transtone committed Oct 4, 2022
1 parent bcb65f7 commit 09dc7c0
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 09dc7c0

Please sign in to comment.