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
Eager loading does incorrect join on self-referential polymorphic relationship #3893
Comments
Michael Bayer (@zzzeek) wrote: you're not doing anything wrong at all, other than combining all the worst nightmare features of the ORM for me to debug at the same time :) |
Michael Bayer (@zzzeek) wrote: this bug was introduced in 1.0.x but I'm trying to stop putting out 1.0.x releases for most things, this would be targeted at 1.1.6. hope that's OK. |
Changes by Michael Bayer (@zzzeek):
|
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: oh, it was introduced in 0.9.7. so an old bug |
Jack Zhou (@univerio) wrote: Thanks for the quick response! It's completely fine with me if it goes out in 1.1.6. I can even use master in the meantime. I don't imagine too many people are hitting this issue if it went unnoticed since 0.9.7, heh :) |
Michael Bayer (@zzzeek) wrote: Dont set _set_select_from() for alias object Fixed bug first introduced in 0.9.7 as a result of 🎫 Fixes: #3893 Change-Id: Ic4003c2c1c0206bd22a098fd497a7375c2758305 → 4ae02f4 |
Changes by Michael Bayer (@zzzeek):
|
Migrated issue, originally created by Jack Zhou (@univerio)
For the following models:
And the following app code:
The main query and the first subquery are correct, but the third contains an extra cross join:
This used to work on 0.9.4:
But maybe the incantation I'm using is wrong.
The text was updated successfully, but these errors were encountered: