[Sqlalchemy-tickets] Issue #4301: Query loading options being ignored when issued a second time (zz
Brought to you by:
zzzeek
From: Alessio B. <iss...@bi...> - 2018-07-10 14:36:36
|
New issue 4301: Query loading options being ignored when issued a second time https://bitbucket.org/zzzeek/sqlalchemy/issues/4301/query-loading-options-being-ignored-when Alessio Bogon: I attach a patch for the test_mapper.py module that reproduces the issue. To sum it up, if you query an object without any options and then you query it again but using options like `joinedload`, these are ignored, unless you do a session.expunge_all() or you delete the queried object from the local scope (by using `del` statement). |