Skip to content

Commit

Permalink
Oracle: 解决子查询也带分页导致报错,感谢 ostrichManX 的贡献 #684
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon authored Feb 7, 2024
2 parents 11874be + fefc4cb commit 046f34e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -4587,6 +4587,9 @@ public boolean isWithAsEnable() {
*/
protected String getOraclePageSql(String sql) {
int count = getCount();
if (count <= 0 || RequestMethod.isHeadMethod(getMethod(), true)) { // TODO HEAD 真的不需要 LIMIT ?
return sql;
}
int offset = getOffset(getPage(), count);
String alias = getAliasWithQuote();

Expand Down

0 comments on commit 046f34e

Please sign in to comment.