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

Remove order for group by clause #46

Merged
merged 6 commits into from
May 30, 2024

Conversation

fumikito
Copy link
Member

Since MySQL 5.7, order modifier for GROUP BY clause is prohibit.

SELECT post_author, COUNT(ID)
FROM wp_posts
GROUP BY post_author DESC

@fumikito fumikito merged commit 6382ca6 into master May 30, 2024
11 checks passed
@fumikito fumikito deleted the bugfix/mysql57-groupbyasc-not-allowed branch May 30, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant