[sqlalchemy] Joinedload and polymorphic problem

2012-05-31 Thread mailing - effem
Hello everyone, I have a big problem that alone can not solve. There are tens of days I try to figure out how to solve this problem. I created a little test to make you understand better. http://pastebin.com/RGXmJWVj I need to know the value of d.CODE with a single query on ClassA. Is there

[sqlalchemy] Joinedload and polymorphic problem

2012-05-31 Thread Francesco
Hello everyone, I have a big problem that alone can not solve. There are tens of days I try to figure out how to solve this problem. I created a little test to make you understand better. http://pastebin.com/hdqR5P6G I need to know the value of d.CODE with a single query on ClassA. I need get a

Re: [sqlalchemy] Joinedload and polymorphic problem

2012-05-31 Thread Michael Bayer
Joining to ClassA.b does not include an automatic upgrade of ClassB to also load it's joined inheritance table ClassC.This is actually something SQLAlchemy can't quite do yet unless you hardwired a with_polymorphic onto your ClassB, which means it would join to ClassC all the time. 0.8