]> 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:38 +0000 (15:05 -0400)
commit88a7f05b62b6e7945fdbb076453b27f30e14e94b
tree53498c687c40afe6af39f421bda64f58cc7765af
parent416c27757a11034c202b408756f52baad9e23098
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
(cherry picked from commit d9d98eacca11490b7df878ef399b92fbb2df2f47)
doc/build/changelog/unreleased_14/11562.rst [new file with mode: 0644]
lib/sqlalchemy/orm/dynamic.py
test/orm/test_dynamic.py