On Mar 11, 2009, at 6:17 PM, Scott wrote:

>
> When I do this...
>
> cpt_codes = ManyToMany(
>  ...
>  order_by = procedure_cpt_codes.c.cpt_codes_idx
> )
>
> # procedure_cpt_codes is the JOIN table in between the parent
> (procedure) <---< children (cpt_codes)
> # procedure_cpt_codes has 3 columns...procedure_id (foreign key),
> cpt_code_id (foreign key) and cpt_codes_idx that's sorted
>
> ...I get the following error:
>
> TypeError: 'Column' object is not iterable

this would suggest the order_by argument on Elixir's ManyToMany  
function is expecting a list.   Try asking on the Elixir mailing list  
about this issue since this is not a SQLAlchemy issue.


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