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 upSuprising interaction between BoxedExperssions, Subselects and BoxedSelectStatements #1544
Comments
This comment has been minimized.
|
You'll need to change the first parameter of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
weiznich commentedFeb 6, 2018
Setup
Versions
rustc 1.25.0-nightly (0c6091fbd 2018-02-04)Feature Flags
features = ["r2d2", "sqlite", "chrono"]Problem Description
I'm trying to dynamically construct some queries containing eventually some subselect statements. I reduced my problem to the code below.
What are you trying to accomplish?
What is the expected output?
The code compiles.
The strange thing about this is the following:
into_boxed()while constructing the query makes the code compilefilter(but not theselect!) call while constructing the subselect makes it compileAt least this behavior seems to be quite surprising for me. I would expect at leas that the second point is not possible or that this query is possible.
What is the actual output?
This error was emitted.
Are you seeing any additional errors?
No
Checklist