targeting non-ORM columns in a query that is already nested via from_self(), union(), etc.

Issue #2155 resolved
Mike Bayer repo owner created an issue

the attached patch has some scratch ideas. I don't think query.c is the way to go. I think some way to make _adapt_all_clauses() more easily available, or perhaps turned on when you call from_self() or otherwise _from_selectable() has been called, might be appropriate here. What use case could there be to use a plain column or expression after a _from_selectable() has been called without the flag ? this is change in default behavior though. should be careful. add a flag? deprecate something ?

Comments (3)

  1. Log in to comment