-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Aggregate + non-aggregate expressions not allowed where they should be #3574
Comments
This is "expected" as we assume that the call to the foo::table
.group_by(foo::uuid)
.select((foo::uuid, diesel::dsl::max(foo::date))) That written: I just checked the documentation and it does not mention this restriction at all. We should probably have that in the documentation of |
Thanks, it does indeed work better in this order |
Setup
Versions
Feature Flags
Problem Description
The following query gives some errors, mixing aggregate and non-aggregate expressions
What are you trying to accomplish?
I'm trying to translate this valid SQL query to diesel dsl
What is the expected output?
Being able to mix such expressions when it's valid sql
What is the actual output?
Are you seeing any additional errors?
No, many thanks for your hard work
Steps to reproduce
Checklist
If you are unsure if your issue is a duplicate of an existing issue please link the issue in question here
Aggregate + non-aggregate expressions can be mixed in places where they should not be allowed to #1586
This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)
This issue can be reproduced without requiring a third party crate
The text was updated successfully, but these errors were encountered: