jasonlong10 opened a new issue #2360: 当路由定位到单张表的时候,可以rewrite limit吗?
URL: https://github.com/apache/incubator-shardingsphere/issues/2360
 
 
   如下图:
   
![image](https://user-images.githubusercontent.com/5526521/57437171-ceedb080-7273-11e9-8f90-6aa7625d620c.png)
   
   如果routingResult能定位到单表,没必要改写offset为0啊
   可改为:
   if (sqlStatement instanceof SelectStatement && null != ((SelectStatement) 
sqlStatement).getLimit() && 
routingResult.getTableUnits().getTableUnits().size() > 1) {
               processLimit(parameters, (SelectStatement) sqlStatement);
           }

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to