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

Fix GROUP BY error if sql_mode "ONLY_FULL_GROUP_BY" is used [3.x] #294

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

halftrainedharry
Copy link

What does it do?

Changes the SQL query to only include the columns the result is grouped by (plus the 'id' column).

Why is it needed?

If the SQL-mode "ONLY_FULL_GROUP_BY" is used, the current code throws an error.

Related issue(s)/PR(s)

Resolves #293 for the 3.x branch

@halftrainedharry halftrainedharry changed the title Fix GROUP BY error if sql_mode "ONLY_FULL_GROUP_BY" is used Fix GROUP BY error if sql_mode "ONLY_FULL_GROUP_BY" is used [3.x] Jul 8, 2024
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