Open JINWANDALAOHU250 opened 2 months ago
No plan to enhance with SQLServer for now, does any one want to do it?
Is it that I want to be simple, I think it should only take parameterMarkerSegments.size() - 1
to solve this problem
I cannot suggest without investigate. Please try.
Bug Report
Which version of ShardingSphere did you use?
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
execute sql like
then parse to
Actual behavior
Reason analyze (If you can)
In class
SQLServerStatementSQLVisitor.class#visitOrderBy
,offset paramIndex and rowcount paramIndex not right, causedPaginationContext
get param in ListSteps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
SpringBoot + Mybatis + Similar to the
sql
mentioned aboveExample codes for reproduce this issue (such as a github link).