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

[Feature request] groupby to automatically add attribute in select #111

Open
OptimusCrime opened this Issue Mar 6, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@OptimusCrime
Copy link

OptimusCrime commented Mar 6, 2017

If strict mode is turned on in mysql/mariadb you can not do group by without also having that attribute in the selects.

There's been many issues reported on this. Although it is a flaw in their SQL queries, the ORM wrapper could be to nice that it fixes this for them.

modxcms/revolution#13287

@Jako

This comment has been minimized.

Copy link
Collaborator

Jako commented Mar 6, 2017

I have talked with @opengeek about this and autocreating select clauses should be a BC. Maybe he could tell more here.

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