- marked as critical
- changed milestone to 0.5.xx
- changed component to orm
- changed title to ensure query(X).add_entity(Y) produces the same internal state as query(X, Y)
ensure query(X).add_entity(Y) produces the same internal state as query(X, Y)
Issue #1188
resolved
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
Comments (4)
-
repo owner -
repo owner - changed milestone to 0.6.0
-
repo owner - changed status to resolved
wow what a PITA. used your test pretty much verbatim in ddeaa9f0d6ed1c7422a90e5b8e92b717e2671403.
-
repo owner - removed milestone
Removing milestone: 0.6.0 (automated comment)
- Log in to comment
here's a patch for this one: