You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "Afsalmc (via GitHub)" <gi...@apache.org> on 2023/12/08 15:58:57 UTC

[I] Cannot use sql server TOP statement. Getting Invalid object name `TABLE_NAME` [shardingsphere]

Afsalmc opened a new issue, #29333:
URL: https://github.com/apache/shardingsphere/issues/29333

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   5.4.1
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   Gets the correct number of rows specified with the TOP statement. 
   ### Actual behavior
   Throws Error :  Getting Invalid object name `TABLE_NAME`
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   Query : Select top 10 * from TableName; -- results in the above error.
   Query: Select  * from TableName; -- No error.
   
   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot use sql server TOP statement. Getting Invalid object name `TABLE_NAME` [shardingsphere]

Posted by "TherChenYang (via GitHub)" <gi...@apache.org>.
TherChenYang commented on issue #29333:
URL: https://github.com/apache/shardingsphere/issues/29333#issuecomment-1859130582

   After verification, sqlServer Antlr file does have a problem when parsing the Top sentence, I will soon submit PR to fix this problem


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot use sql server TOP statement. Getting Invalid object name `TABLE_NAME` [shardingsphere]

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #29333: Cannot use sql server TOP statement. Getting Invalid object name `TABLE_NAME`
URL: https://github.com/apache/shardingsphere/issues/29333


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org