xszhe

Results 2 comments of 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,导致无法识别。 ![Snipaste_2022-01-28_09-29-51](https://user-images.githubusercontent.com/49973087/151471374-3dfc8763-e82c-46b7-901d-295c7f8c66d5.jpg) 我通过对分页组件 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 没发现这个问题