Re: [sqlalchemy] Problem/bug with column_property on eagerloaded polymophic table

2011-10-31 Thread Adrian Tejn Kern
Thank you, very much. I actually did try to use the actually Column, but I could figure out how to resolve my interdependencies since my column_property is actually a subselect, and apparently I didn't test it on my test case. -- You received this message because you are subscribed to the

[sqlalchemy] Problem/bug with column_property on eagerloaded polymophic table

2011-10-30 Thread Adrian Tejn Kern
I have a column_property on a polymorphic base class. When I joinedload/subqueryload a derived class the colum_property makes the query fail. class A(Base): __tablename__ = a id = Column(Integer, primary_key=True) type= Column(String(40), nullable=False) __mapper_args__

Re: [sqlalchemy] Problem/bug with column_property on eagerloaded polymophic table

2011-10-30 Thread Michael Bayer
It's a bug but a small one... I'd be ready to jump off a bridge if this kind of thing wasn't working in general at this point. Trying your test case, the column_property() for the moment has to be against the actual Column, not the mapped property (there's a difference): class A(Base):