[sqlalchemy] Disabling subqueries when using joinedload to load a polymorphic class

2012-12-18 Thread Gerald Thibault
I've attached an example showing the issue. I have a class, Test, with a single polymorphic subclass, TestOne. I also have TestChild, which has a fk to Test, and a relation using that fk. When I execute: session.query(TestChild) \ .options(joinedload(TestChild.parent)) \

Re: [sqlalchemy] Disabling subqueries when using joinedload to load a polymorphic class

2012-12-18 Thread Michael Bayer
On Dec 18, 2012, at 3:50 PM, Gerald Thibault wrote: I've attached an example showing the issue. I have a class, Test, with a single polymorphic subclass, TestOne. I also have TestChild, which has a fk to Test, and a relation using that fk. When I execute: session.query(TestChild) \