Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTrait `diesel::expression::NonAggregate` is not implemented for `diesel::dsl::CountStar` #1781
Comments
This comment has been minimized.
|
Also hitting this issue and was wondering if there is a workaround to getting it work... |
This comment has been minimized.
|
I managed to work around it by replacing |
This comment has been minimized.
|
Diesel doesn't currently support |
sgrif
closed this
Jul 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ondj commentedJul 7, 2018
•
edited
Setup
Versions
Feature Flags
Problem Description
I am trying to get results from db grouped by column
serial_toand getserial_towith number of entries for that serial.What are you trying to accomplish?
Send to database SQL query like this:
What is the expected output?
Vec<(i32, i64)>What is the actual output?
Compilation error:
Are you seeing any additional errors?
No
Steps to reproduce
Database schema can be simple:
This is compiled correctly and works:
But this shows complication errors:
Checklist
closed if this is not the case)