You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
导致问题: Caused by: com.dangdang.ddframe.rdb.sharding.exception.ShardingJdbcException: Invalid value to transfer: 0
at com.dangdang.ddframe.rdb.sharding.util.NumberUtil.roundHalfUp(NumberUtil.java:55) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.parsing.parser.context.limit.Limit.fill(Limit.java:82) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.parsing.parser.context.limit.Limit.processParameters(Limit.java:73) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.routing.router.ParsingSQLRouter.processLimit(ParsingSQLRouter.java:147) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.routing.router.ParsingSQLRouter.route(ParsingSQLRouter.java:93) ~[sharding-jdbc-core-1.5.0.jar:na]
Please answer these questions before submitting your issue. Thanks!
Which version of Sharding-Jdbc do you using?
<sharding-jdbc.version>1.5.0</sharding-jdbc.version>
Expected behavior
查询条件:LIMIT #{startIndex},#{pageSize}
当 startIndex 是一个Long类型 能正常运行,有返回结果。
Actual behavior
导致问题: Caused by: com.dangdang.ddframe.rdb.sharding.exception.ShardingJdbcException: Invalid value to transfer: 0
at com.dangdang.ddframe.rdb.sharding.util.NumberUtil.roundHalfUp(NumberUtil.java:55) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.parsing.parser.context.limit.Limit.fill(Limit.java:82) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.parsing.parser.context.limit.Limit.processParameters(Limit.java:73) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.routing.router.ParsingSQLRouter.processLimit(ParsingSQLRouter.java:147) ~[sharding-jdbc-core-1.5.0.jar:na]
at com.dangdang.ddframe.rdb.sharding.routing.router.ParsingSQLRouter.route(ParsingSQLRouter.java:93) ~[sharding-jdbc-core-1.5.0.jar:na]
Steps to reproduce the behavior
查询条件:LIMIT #{startIndex},#{pageSize}
startIndex 传入一个Long类型
Please provide the reproduce example codes (such as github link) if possible.
The text was updated successfully, but these errors were encountered: