Oracle: 解决子查询也带分页导致报错,感谢 ostrichManX 的贡献 #684

https://github.com/Tencent/APIJSON/pull/684
This commit is contained in:
TommyLemon 2024-02-07 22:32:27 +08:00 committed by GitHub
commit 046f34e91e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4587,6 +4587,9 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
*/
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();