Re: [Sqlalchemy-users] polymorph mapping help

2006-04-06 Thread Michael Bayer
yah, you have to pad each select with nulls for the columns that dont match up...a quickish way might be : [null().label(c.key) for c in products.c] take a look at examples/polymorph/polymorph2.py for something like this. On Apr 6, 2006, at 10:34 AM, Florian Boesch wrote: I'm tryin

[Sqlalchemy-users] polymorph mapping help

2006-04-06 Thread Florian Boesch
I'm trying to do the polymorph mapper example, but am I sort of at a block. Say I got a setup like: content = Table('content', engine, Column('id', Sequence('content_seq'), primary_key=True), Column('title', String(255)) ) product = Table('product', engine, Column('id', ForeignKey('conte