im playing with some code to do this automatically, but looking back at
sa_ref_A_B_A_all.py, change your primaryjoins to:

mapper_A/link1:
primaryjoin= table_A.c.link1_id==(Alink=='A' and (poly and Ajoin or
table_A) or table_B).c.id,

mapper_B/link2:
primaryjoin= table_B.c.link2_id==(Blink=='A' and (poly and Ajoin or
table_A) or table_B).c.id,

i.e. when using a polymorphic union to select, make the primary join go
from the parent table to the child "selectable", instead of a table
deep inside the child "selectable" (the "selectable" is the polymorphic
union).  then I get no failures outside of the "concrete" test cases.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to