Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Long type parameters of Pagination are incompatible #2980

Closed
liaoxianrong opened this issue Sep 5, 2019 · 1 comment
Closed

The Long type parameters of Pagination are incompatible #2980

liaoxianrong opened this issue Sep 5, 2019 · 1 comment

Comments

@liaoxianrong
Copy link

When I using Mybatis-plus PaginationInterceptor plugin, shardingsphere does not work, something wrong has happend. Track it down and find an error at here:
org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination

private int getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters) {
        return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment
                ? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
                : ((NumberLiteralPaginationValueSegment) paginationValueSegment).getValue();
    }

The Long type parameters of Pagination, such as Long total, Long pageNum, Long pageSize. and then throw an exception at "(int) parameters.get(((ParameterMarkerPaginationValueSegment) ".
Can someone help with that?

@KomachiSion
Copy link
Member

duplicate with #2926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants