Oracle: 解决子查询也带分页导致报错,感谢 ostrichManX 的贡献 #684
https://github.com/Tencent/APIJSON/pull/684
This commit is contained in:
commit
046f34e91e
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user