From c03d0d31eca5470c86b74462411691627d6cd928 Mon Sep 17 00:00:00 2001 From: guanlinc <437663002@qq.com> Date: Thu, 14 Mar 2024 21:16:51 +0800 Subject: [PATCH] =?UTF-8?q?RN=E5=88=97=E6=95=B0=E5=AD=97=E6=AE=B5=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E5=8F=8C=E5=BC=95=E5=8F=B7=EF=BC=8C=E9=81=B5=E5=BE=AA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java b/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java index 278b5e15..c39fd9d4 100755 --- a/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java +++ b/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java @@ -4592,9 +4592,9 @@ protected String getOraclePageSql(String sql) { } int offset = getOffset(getPage(), count); String alias = getAliasWithQuote(); - - return "SELECT * FROM (SELECT " + alias + ".*, ROWNUM RN FROM (" + sql + ") " + alias - + " 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; } /**获取条件SQL字符串