ztgoto opened a new issue #8216:
URL: https://github.com/apache/shardingsphere/issues/8216


   ### Which version of ShardingSphere did you use?
   
   version 4.1.1
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   ### Expected behavior
   The shard table name in the subquery was successfully rewritten
   
   
   ### Actual behavior
   The shard table name is not overwritten in the subquery
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   `
   SELECT 
   r.*
   FROM
   ( SELECT id FROM t_order WHERE member_id = ? AND `create_date` >= ? ORDER BY 
create_date DESC LIMIT 0, 10 ) o
   INNER JOIN t_record r ON r.order_id = o.id
   `
   shard table logical name `t_order`  not rewritten
   
   ### Example codes for reproduce this issue (such as a github link).
   


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


Reply via email to