Skip to content

Commit fefc4cb

Browse files
authored
Update AbstractSQLConfig.java
解决oracle in中的子查询会带上分页的bug
1 parent 11874be commit fefc4cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

+3
Original file line numberDiff line numberDiff line change
@@ -4587,6 +4587,9 @@ public boolean isWithAsEnable() {
45874587
*/
45884588
protected String getOraclePageSql(String sql) {
45894589
int count = getCount();
4590+
if (count <= 0 || RequestMethod.isHeadMethod(getMethod(), true)) { // TODO HEAD 真的不需要 LIMIT ?
4591+
return sql;
4592+
}
45904593
int offset = getOffset(getPage(), count);
45914594
String alias = getAliasWithQuote();
45924595

0 commit comments

Comments
 (0)