]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure implicit_returning is checked on a Table instance
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Nov 2022 17:45:54 +0000 (12:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 22 Nov 2022 19:06:09 +0000 (14:06 -0500)
commitab84559ca0f4cce1638a00f48295085e18ecaf45
tree7672f7c16e85d3a6d82052d2cc48eec04bb7d70d
parent3fc6c40ea77c971d3067dab0fdf57a5b5313b69b
ensure implicit_returning is checked on a Table instance

Fixed regression where flushing a mapped class that's mapped against a
subquery, such as a direct mapping or some forms of concrete table
inheritance, would fail if the :paramref:`_orm.Mapper.eager_defaults`
parameter were used.

mapper.local_table can still be a non-table instance.
correct the check first added in 466ed5b53a3.

Fixes: #8812
Change-Id: I1bb2b83c31b910fbd96fcd3ac43e789b657aebf7
doc/build/changelog/unreleased_20/8812.rst [new file with mode: 0644]
lib/sqlalchemy/orm/persistence.py
test/orm/test_unitofworkv2.py