Skip to content

Commit 046f34e

Browse files
authoredFeb 7, 2024
Oracle: 解决子查询也带分页导致报错,感谢 ostrichManX 的贡献 #684
#684
2 parents 11874be + fefc4cb commit 046f34e

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)
Please sign in to comment.