Ran into something this morning, fix and problem are simple.
Q) How do I map a column that is a Python reserved word or already used 
by SA?
A)
table_a = Table ('tbl_a', metadata, autoload=True)
mapper(AObj, table_a, properties={'type_col' : table_a.c.type, 
'pass_col':table_a.c['pass']})

This may be covered under 3.1 "I am using autoload=True and <insert your 
problem here>", but I think type is a common enough column name.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to