xszhe
xszhe
我也出现同样的问题,是因为 D:/maven_bd/org/apache/shardingsphere/shardingsphere-jdbc-core/5.0.0/shardingsphere-jdbc-core-5.0.0.jar!/org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.class:121 this.sqlStatement = sqlParserEngine.parse(sql, true); 这个语句无法正常解析分页组件组合的SQL,导致无法识别。  我通过对分页组件 com.github.pagehelper:pagehelper:5.3.0 的源码修改覆盖, 将 order by 的子查询提取到外部,让 sharding 能正常解析。 com.github.pagehelper.dialect.helper.OracleDialect ` /** * */ public String getPageSql(String sql, Page page, CacheKey pageKey)...
使用 com.github.pagehelper:pagehelper:5.3.0 + sharding-jdbc 5.0 没发现这个问题