On Thursday 30 July 2009 04:26:20 pm Michael Bayer wrote:
> you have to get the select() syntax right:
>
>
> BillingInfo = relation('BillingInfo',
>                           
> primaryjoin="and_(Invoice.pay2addrid==BillingInfo.pay2addrid,Invoice.custom
>er==
> select([Customer.customer]).where(Customer.xrscustid==BillingInfo.xrscustid
>))")

Michael, a million thanks.  Seriously.  That did exactly what I needed, and 
should handle a bunch of similar issues with other legacy tables. I appreciate 
it!
-- 
Kirk Strauser

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

Reply via email to