Skip to content
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

GROUP BY + LIMIT rewrite incorrect #320

Closed
terrymanu opened this issue Aug 9, 2017 · 1 comment
Closed

GROUP BY + LIMIT rewrite incorrect #320

terrymanu opened this issue Aug 9, 2017 · 1 comment

Comments

@terrymanu
Copy link
Member

terrymanu commented Aug 9, 2017

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Jdbc do you using?

1.5.0

Expected behavior

SELECT user_id FROM t_order GROUP BY user_id LIMIT ?

=>

SELECT user_id FROM t_order GROUP BY user_id ORDER BY user_id ASC LIMIT ?

Actual behavior

SELECT user_id FROM t_order GROUP BY user_id LIMIT ?

=>

SELECT user_id FROM t_order GROUP BY user_id LIMIT ORDER BY user_id ASC
terrymanu added a commit that referenced this issue Aug 9, 2017
@terrymanu
Copy link
Member Author

fixed at 1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant