Closed
Description
Migrated issue, originally created by Anonymous
A has link to B; then
- query(A,B).join(A.linktoB)
- query(A).join(A.linktoB).add_entity(B)
- query(A).add_entity(B).join(A.linktoB)
- query(B,A).join(B.backtoA)
- query(B).join(B.backtoA).add_entity(A)
- query(B).add_entity(A).join(B.backtoA)
should be equivalent?
if B is not to be aliased / not with_polymorphic, all is ok;
else, above give different results, some nothing, some decart product coming from having both B and Baliased in FROM
svil / az () svilendobrev _com
Attachments: a.py
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
sqlalchemy-bot commentedon Dec 22, 2008
Michael Bayer (@zzzeek) wrote:
here's a patch for this one:
sqlalchemy-bot commentedon Dec 22, 2008
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon Mar 19, 2010
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon Mar 19, 2010
Michael Bayer (@zzzeek) wrote:
wow what a PITA. used your test pretty much verbatim in ddeaa9f.
sqlalchemy-bot commentedon Mar 19, 2010
Changes by Michael Bayer (@zzzeek):