We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83d606a + c03d0d3 commit e86a0c6Copy full SHA for e86a0c6
APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java
@@ -4592,9 +4592,9 @@ protected String getOraclePageSql(String sql) {
4592
}
4593
int offset = getOffset(getPage(), count);
4594
String alias = getAliasWithQuote();
4595
-
4596
- return "SELECT * FROM (SELECT " + alias + ".*, ROWNUM RN FROM (" + sql + ") " + alias
4597
- + " WHERE ROWNUM <= " + (offset + count) + ") WHERE RN > " + offset;
+ String quote = getQuote();
+ return "SELECT * FROM (SELECT " + alias + ".*, ROWNUM "+ quote + "RN" + quote +" FROM (" + sql + ") " + alias
+ + " WHERE ROWNUM <= " + (offset + count) + ") WHERE "+ quote + "RN" + quote +" > " + offset;
4598
4599
4600
/**获取条件SQL字符串
0 commit comments