Skip to content

Commit e2cfc82

Browse files
committed
update a problem about oracle
1 parent 5952567 commit e2cfc82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ public static String getSQL(AbstractSQLConfig config) throws Exception {
26852685
String column = config.getColumnString();
26862686
if (config.isOracle()) {
26872687
//When config's database is oracle,Using subquery since Oracle12 below does not support OFFSET FETCH paging syntax.
2688-
return explain + "SELECT * FROM (SELECT"+ (config.getCache() == JSONRequest.CACHE_RAM ? "SQL_NO_CACHE " : "") + column + " FROM " + getConditionString(column, tablePath, config) + ") " + config.getLimitString();
2688+
return explain + "SELECT * FROM (SELECT "+ (config.getCache() == JSONRequest.CACHE_RAM ? "SQL_NO_CACHE " : "") + column + " FROM " + getConditionString(column, tablePath, config) + ") " + config.getLimitString();
26892689
}
26902690

26912691
return explain + "SELECT " + (config.getCache() == JSONRequest.CACHE_RAM ? "SQL_NO_CACHE " : "") + column + " FROM " + getConditionString(column, tablePath, config) + config.getLimitString();

0 commit comments

Comments
 (0)