You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/09/07 10:55:49 UTC
[GitHub] [incubator-shardingsphere] dhuaqiao opened a new issue #3001: 分页查询返回的是Long类型。但是代码做了Integer类型强制转化。
dhuaqiao opened a new issue #3001: 分页查询返回的是Long类型。但是代码做了Integer类型强制转化。
URL: https://github.com/apache/incubator-shardingsphere/issues/3001
org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination
private int getValue(PaginationValueSegment paginationValueSegment, List<Object> parameters) {
return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment ? **(Integer)**parameters.get(((ParameterMarkerPaginationValueSegment)paginationValueSegment).getParameterIndex()) : ((NumberLiteralPaginationValueSegment)paginationValueSegment).getValue();
}
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services