-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing impl for tuples in custom QueryFragment #4292
Comments
Hey @Zstorm999 @weiznich , can I work on this? |
@PratikFandade Sure, just let us know if you need some help there. Also expect to handle some rather complex trait relations there. |
I found the declaration of the SelectBy in this code, if I'm correct the SelectBy should be compatible using this right? Do we make a new impl for the tuples of SelectBy? |
@prkbuilds Sorry for taking that long to answer. I've not forgot about this, but I had not the capacity yet to investigate why this happens. |
No worries! I'll try to solve this with something |
When building a custom QueryFragment, it seems some method do not behave the same when using the standard
SelectBy
trait or a custom implementation.This happens in particular when trying to query two structs inside a tuple (see example below).
Minimum reproduction
Here is the error produced by the compiler:
cargo error message
Originally posted by @Zstorm999 in #4234 (comment)
In particular, it seems that this impl
diesel/diesel/src/type_impls/tuples.rs
Lines 371 to 384 in 79399de
and this one
diesel/diesel/src/type_impls/tuples.rs
Lines 342 to 349 in 79399de
do not behave correctly together
The text was updated successfully, but these errors were encountered: