]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
populate existing can be in exec option in session.get
authorFederico Caselli <cfederico87@gmail.com>
Wed, 29 Apr 2026 21:09:57 +0000 (23:09 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 10 May 2026 15:39:45 +0000 (11:39 -0400)
commit43213299b596c1bd86a376a252e0df93c3759bdd
tree87537941ca734692c48aa410886cf6c948a1c314
parent0aa47f8082513ecccc1638558f46b9fe8e610ad2
populate existing can be in exec option in session.get

The ``populate_existing`` execution option is now honored when passed
in the :paramref:`.Session.get.execution_options` dict by the method
:meth:`.Session.get` and analogous in other session kinds. The current
:paramref:`.Session.get.populate_existing` parameter will takes precedence
if specified, overriding the value of the execution options.

Fixes: #10610
Change-Id: I4ddc9a7c6dda8f31f4dd413b49a9196efb3edaa6
doc/build/changelog/unreleased_21/10610.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/scoping.py
lib/sqlalchemy/ext/asyncio/session.py
lib/sqlalchemy/orm/scoping.py
lib/sqlalchemy/orm/session.py
test/orm/test_scoping.py
test/orm/test_session.py