diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-10 14:59:59 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-10 19:48:32 -0500 |
| commit | 4e9fe6e3b7a72fc3b116403ea9b27e847b5bf186 (patch) | |
| tree | 87df7e468c1d6f13ce5a438aef779e5462a6c2f4 /lib/sqlalchemy | |
| parent | 5681d4e4da8ee69d83e9c0103c171d413d4c183e (diff) | |
| download | sqlalchemy-4e9fe6e3b7a72fc3b116403ea9b27e847b5bf186.tar.gz | |
ensure with_options not switched to a list
Fixed regression which appeared in 1.4.23 which could cause loader options
to be mis-handled in some cases, in particular when using joined table
inheritance in combination with the ``polymorphic_load="selectin"`` option
as well as relationship lazy loading, leading to a ``TypeError``.
Fixes: #7557
Change-Id: Id38619692f94308fd5f567a02337efef7a3a7544
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/strategies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index c29fc7749..a8a563952 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -964,7 +964,7 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots): if state.load_options or (loadopt and loadopt._extra_criteria): effective_path = state.load_path[self.parent_property] - opts = list(state.load_options) + opts = tuple(state.load_options) if loadopt and loadopt._extra_criteria: use_get = False |
