Michael Bayer wrote: > On Nov 2, 2006, at 11:47 PM, Randall Smith wrote: > >> Is there a way to inherit more than one level for single table >> inheritance? Take this relationship for example: >> >> Animal -> Dog -> German Shepard >> >> Say there are 10 animals; 5 are dogs and 2 are German Shepard. >> >> session.query(Animal).select() # Should yield 10 results. >> session.query(Dog).select() # Should yield 5 results. >> session.query(GermanShepard).select() # Should yield 2 results. >> > > not unless you apply the attached patch, and/or update to rev 2084.
Works nicely. Thanks! To me, it seems that getting inheritance right is important to fully utilizing the O in ORM and I like you implementation so far. Randall --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---