just FYI, the "type" column idea is taken from Hibernate, and that's
all Hibernate supports as far as polymorphic loading.

But for polymorphic loading in SA, you are free to make any kind of
"polymorphic_union" you like that can add in a functionally-generated
"type" column, and specify it into select_table.  im pretty sure this
should work completely right now, such as:

import sqlalchemy.sql as sql

person_join = polymorphic_union(
    {
      'engineer':sql.select([people.join(engineers),
sql.column("'engineer'").label('type')]),
      'manager':sql.select([people.join(managers),
sql.column("'manager'").label('type')]),
   }
)

etc.


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