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 for SelectStatements and subqueries. #1587
Comments
weiznich
added
the
bug
label
Mar 5, 2018
sgrif
added this to the 1.2 milestone
Mar 5, 2018
added a commit
that referenced
this issue
Apr 5, 2018
sgrif
referenced this issue
Apr 5, 2018
Merged
Tighten bounds on select statements used as a subselect #1616
sgrif
closed this
in
#1616
Apr 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
weiznich commentedMar 5, 2018
Setup
Versions
Feature Flags
Problem Description
Without a explicit
selectclause diesel will generate invalid sql when using normal select statement as subquery in aINclause.This does not happen with
BoxedSelectStatements.What are you trying to accomplish?
What is the expected output?
A compiler error.
What is the actual output?
The program compiles fine, but errors with a invalid query at runtime.
DatabaseError(__Unknown, "subquery has too many columns")Are you seeing any additional errors?
No
Steps to reproduce