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 upInvalid sql generated #1141
Comments
killercup
added
the
bug
label
Sep 2, 2017
This comment has been minimized.
|
diesel/diesel_tests/tests/group_by.rs Lines 5 to 7 in ceed4c1 |
sgrif
closed this
Sep 5, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
weiznich commentedSep 2, 2017
Setup
Versions
Feature Flags
Problem Description
It is possible to generate invalid sql using diesels buildin query dsl. In detail it is possible to use
desc()ingroup_bycalls. (I didn't check any other combinations, probably this could be used in other places too)What are you trying to accomplish?
I've misstyped some query by accident using
group_byinstead oforderand was surprised this was compiling after noticing this.What is the expected output?
A compiler error indicating
.desc()should not be used ingroup_by()clauses.What is the actual output?
A runtime error indicating a invalid sql query
Are you seeing any additional errors?
No
Steps to reproduce
Checklist