diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-26 11:25:00 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-26 14:45:45 -0500 |
commit | 818d62be00530549aa52dd5d981819010e4ae484 (patch) | |
tree | fdbb5a8290fcb36a3ae4661c083c3d9716fb6ee0 /test/dialect/postgresql/test_reflection.py | |
parent | 79e047806261e8d6690b0d8dacd641eba6d6e3ec (diff) | |
download | sqlalchemy-818d62be00530549aa52dd5d981819010e4ae484.tar.gz |
restore graceful degrade of subqueryload w from_statement
Fixed regression from 1.3 where the "subqueryload" loader strategy would
fail with a stack trace if used against a query that made use of
:meth:`_orm.Query.from_statement` or :meth:`_sql.Select.from_statement`. As
subqueryload requires modifying the original statement, it's not compatible
with the "from_statement" use case, especially for statements made against
the :func:`_sql.text` construct. The behavior now is equivalent to that of
1.3 and previously, which is that the loader strategy silently degrades to
not be used for such statements, typically falling back to using the
lazyload strategy.
Fixes: #7505
Change-Id: I950800dc86a77f8320a5e696edce1ff2c84b1eb9
Diffstat (limited to 'test/dialect/postgresql/test_reflection.py')
0 files changed, 0 insertions, 0 deletions