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 up[sqlite] .filter() using .and() causes empty set, but multiple .filter() work as expected #1485
Comments
This comment has been minimized.
|
In example one you have: You meant |
sgrif
closed this
Jan 17, 2018
This comment has been minimized.
jjpe
commented
Jan 17, 2018
|
I completely missed that, you're absolutely right. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jjpe commentedJan 17, 2018
•
edited
Setup
Versions
rustc 1.25.0-nightly (51b0b3734 2018-01-12)1.1.0sqliteFedora Linux 27Feature Flags
sqlitenot used at allProblem Description
Consider this query:
The above code results in an empty result set, whereas this one does not:
What are you trying to accomplish?
Either report this disparity as a bug and have it fixed; Or, if there is a good reason for the status quo, it would be good to document that somewhere easily discoverable (e.g. the diesel website).
What is the expected output?
First off, both examples compile fine i.e. no warnings or errors.
What I expected to happen in both cases is the equivalent of
What is the actual output?
Example 1 always results in an empty set for me, and example 2 produced the expected output.
Are you seeing any additional errors?
None.
Steps to reproduce
I don't see any connections to e.g. the actual schema, so this should be easy to test on any diesel/sqlite database.
Checklist