]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
call iter() on detached/transient dynamic session
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jul 2024 17:57:47 +0000 (13:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jul 2024 19:05:33 +0000 (15:05 -0400)
commitd9d98eacca11490b7df878ef399b92fbb2df2f47
treef4e40e7c06410463cfac6767c73cf1d123f5a9f2
parent83b0690f88f46c0c8c04f8f24b5a95f426eba12b
call iter() on detached/transient dynamic session

Fixed regression going back to 1.4 where accessing a collection using the
"dynamic" strategy on a transient object and attempting to query would
raise an internal error rather than the expected :class:`.NoResultFound`
that occurred in 1.3.

Fixes: #11562
Change-Id: I650305963a17592413520d8d1049c601761a0acc
doc/build/changelog/unreleased_14/11562.rst [new file with mode: 0644]
lib/sqlalchemy/orm/dynamic.py
test/orm/test_dynamic.py