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/03 01:30:17 UTC

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #2926: mysql page limit Long parameter type error

KomachiSion commented on issue #2926: mysql page limit Long parameter type error
URL: https://github.com/apache/incubator-shardingsphere/issues/2926#issuecomment-527270528
 
 
   I test in mysql 5.7.21, offset and row count of limit can be over INTEGER.MAX.
   ```
   sql> select * from t_order limit 0, 9999999999
   [2019-09-03 09:21:48] 5 rows retrieved starting from 1 in 28ms (execution: 17ms, fetching: 11ms)
   sql> select * from t_order limit 9999999999, 9999999999
   [2019-09-03 09:22:27] 0 rows retrieved in 37ms (execution: 21ms, fetching: 16ms)
   ``` 
   
   So, I think `Pagination` in ShardingSphere should use type Long instead of Integer for offset and row count to solve this exception.

----------------------------------------------------------------
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