You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/03/21 03:24:15 UTC

[GitHub] [incubator-shardingsphere] joooohnli commented on issue #2062: Wrong LIMIT rewrite while GROUP BY and ORDER BY on different items

joooohnli commented on issue #2062: Wrong LIMIT rewrite while GROUP BY and ORDER BY on different items
URL: https://github.com/apache/incubator-shardingsphere/issues/2062#issuecomment-475102389
 
 
   @tuohai666 
   # Expected behavior
   
   What I input is **limit 0, 10**
   
   # Actual behavior
   What I really got is **limit 0, 2147483647** you can see as below:
   ```
   SQL: select max(sid) as sid, max(sendTime) as sendTime, objectId, sum(0) as unreadCount from TEST where memberId = ? and status != -1 group by objectId order by sendTime desc limit ?, ?
   SQL-BindValue: 52146792, 0, 2147483647
   ```

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