GHZ wrote:
>
>     boston_addresses = relation('Address',
>                                primaryjoin = and_
> ('User.user_id==Address.user_id',
>
> 'Address.city=="Boston"'),
>                                foreign_keys = ['Address.user_id'])


the expression sent to primaryjoin must be an expression construct, or a
string which can be eval'ed to produce one.  You can't wrap the
to-be-eval'ed construct inside of an expression construct (i.e. and_() in
this case).


--~--~---------~--~----~------------~-------~--~----~
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