We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a Clear::SQL.select(...).having { x }.group_by { y }, the SQL HAVING is generated before the GROUP BY, which is illegal in postgres. I.e.
Clear::SQL.select(...).having { x }.group_by { y }
SELECT * FROM users HAVING count(x) > 10 GROUP BY name
This StackOverflow question describes why it is this way https://stackoverflow.com/questions/27022414/why-does-the-having-clause-need-to-come-after-the-group-by
The text was updated successfully, but these errors were encountered:
9991051
No branches or pull requests
In a
Clear::SQL.select(...).having { x }.group_by { y }
, the SQL HAVING is generated before the GROUP BY, which is illegal in postgres.I.e.
This StackOverflow question describes why it is this way https://stackoverflow.com/questions/27022414/why-does-the-having-clause-need-to-come-after-the-group-by
The text was updated successfully, but these errors were encountered: