Open archyly opened 1 year ago
The same problem,Help me!!!!!
help me!!! pagehelper and tenant plugins None of them can be used
I tested all the 5.x's, and they all had this problem,May be LimitPaginationContextEngine error. If I have 3 parameters,such offsetSegment == 2 and rowCountSegment == 3
Hi @Blackcbears, can you try to submit a pr to fix this problem?
https://github.com/apache/shardingsphere/issues/17973#issuecomment-1212790893 maybe this is the answer
SELECT * FROM t_order ORDER BY order_id OFFSET 0 ROW FETCH NEXT ? ROWS ONLY
SELECT * FROM t_order ORDER BY order_id OFFSET ? ROW FETCH NEXT ? ROWS ONLY
@Blackcbears Part of the problem can be solved in the solution😂
@archyly try add alias
for example:SELECT COUNT(0) as number FROM t_order
This problem seems to have been solved in the new version #22614 but in Sqlserver its reproduce. Similar problems:#17973 ,#20352 ,#23799 There seems to be a connection between these problems。It may be related to paging sql ShardingSphere version :5.3.1 SQL:
SELECT count(0) FROM (SELECT DISTINCT t.* FROM test t) table_count
shardingsphere config: