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 upPredicates that reference a column on the right side of a left outer join cannot be used #621
Comments
sgrif
added this to the
0.10 milestone
Feb 4, 2017
sgrif
added
the
bug
label
Feb 11, 2017
added a commit
that referenced
this issue
Feb 15, 2017
added a commit
that referenced
this issue
Feb 15, 2017
sgrif
referenced this issue
Feb 15, 2017
Closed
Ensure aggregate functions enforce the column is from the right table #706
added a commit
that referenced
this issue
Feb 15, 2017
sgrif
referenced this issue
Feb 15, 2017
Merged
Use associated types for `SelectableExpression` #709
sgrif
closed this
in
#709
Feb 16, 2017
added a commit
that referenced
this issue
Feb 26, 2017
added a commit
that referenced
this issue
Feb 26, 2017
added a commit
that referenced
this issue
Mar 3, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sgrif commentedFeb 4, 2017
A minimal script to reproduce with Diesel 0.10.0
This affects the usage of any predicate in the query DSL. Ultimately the problem comes down to the fact that we are writing impls like:
Since the second parameter of
SelectableExpressiondefaults to the SQL type of the expression, and that changes to be nullable if we're on the right side of a left outer join, the where clause resolves to the wrong SQL type.The fix here is to change the second parameter of
SelectableExpressionto be an associated type, not a type parameter. Either by going forward with #6, or with a smaller change.