-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring data jpa auto limit page some grammar not support #1672
Comments
note:
I suggest not sharding table do not rewrite limit. |
I expect all 4 answers corresponding to the 4 questions above. Please answer them one by one. |
You are right. In 3.1.0-SNAPSHOT, single routing sql will not rewrite limit. |
a moment ago,I use dev branch(version:3.1.0-SNAPSHOT),junit test error.
Read the latest code,not find uplated,please check whether to merge code.
|
Where's the answer? |
1.test result fail. |
Fail what? |
the table is not sharding,so i expect limit 1000,1000,but sharding generate sql is 0,2000. |
Have you counted the result rows? |
yes,business code generate logical problems.
|
OK. Can you debug 3.1.0-SNAPSHOT with breakpoint? |
isSingleRouting is true. sharding config code:
test code
userRepository
debug code:
|
If so, the failure of your test case failure is because your test case is wrong. I believe the output will be a 1000 rows result set in 3.1.0-SNAPSHOT. For the new problem, it should not be discuss in this issue. I suggest you open a new issue and never mention your test cases again(because they don't manke sense, and invalid enough). Instead you mention confs, SQLs and the expected result. Also please don't analyze, focus to the problem and describe it clearly, that's enough. |
ok,let me fix new problem.now test case still faild. |
This problem is fixed in dev branch. |
junit test:
UserRepository interface:
see sql log limit 0, 2000
The text was updated successfully, but these errors were encountered: