]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add new NO_RAISE attribute flag and specify for m2o history load
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Nov 2018 15:11:03 +0000 (11:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Nov 2018 13:23:24 +0000 (09:23 -0400)
commitbc04e63475e94f99a6e21a48824adf6ec6b37319
tree3d4f49781e874deb440b65c2dc250b9cac000480
parentbc7c212370621a26629392cf247492c773fa63fd
Add new NO_RAISE attribute flag and specify for m2o history load

Added new behavior to the lazy load that takes place when the "old" value of
a many-to-one is retrieved, such that exceptions which would be raised due
to either ``lazy="raise"`` or a detached session error are skipped.

Fixes: #4353
Change-Id: I6c6c77613e93061a909f5062b70b17e8913fc9ee
doc/build/changelog/migration_13.rst
doc/build/changelog/unreleased_13/4353.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_relationships.py