yukunqi opened a new issue, #28856: URL: https://github.com/apache/shardingsphere/issues/28856
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? 5.3.1 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-JDBC ### Expected behavior Paginated SQL statements can be executed normally ### Actual behavior exception java.lang.String cannot be cast to java.lang.Integer ### Reason analyze (If you can) 1. This is the end point where the exception occurs https://github.com/apache/shardingsphere/blob/024c4d33b5098a644346c079104247ce614e5078/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/select/pagination/PaginationContext.java#L57 2. The ParameterIndex is parsed from the ShardingSphereSQLParserEngine class in the constructor of ShardingSpherePreparedStatement. https://github.com/apache/shardingsphere/blob/024c4d33b5098a644346c079104247ce614e5078/jdbc/core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.java#L200C34-L201 ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. You only need to execute the unit test for this SQL and perform SQL parsing to see the results of the parsing. ### Example codes for reproduce this issue (such as a github link). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
