]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug in :meth:`.Update.return_defaults` which would cause all
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Dec 2015 22:24:47 +0000 (17:24 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Dec 2015 22:30:42 +0000 (17:30 -0500)
commita6387b0df8693310e0514f714ba9970e4dca6e5d
treec4b56c59d80be6955e2e6cbd00f8cbe65618c5c8
parentcb24a4fcd798b07a858663079f3d25f66fd29268
- Fixed bug in :meth:`.Update.return_defaults` which would cause all
insert-default holding columns not otherwise included in the SET
clause (such as primary key cols) to get rendered into the RETURNING
even though this is an UPDATE.

- Major fixes to the :paramref:`.Mapper.eager_defaults` flag, this
flag would not be honored correctly in the case that multiple
UPDATE statements were to be emitted, either as part of a flush
or a bulk update operation.  Additionally, RETURNING
would be emitted unnecessarily within update statements.

fixes #3609

(cherry picked from commit 0e4c4d7efc08d04c3c0ae960428b08ada37e4a91)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/testing/assertsql.py
test/orm/test_unitofworkv2.py
test/orm/test_versioning.py
test/sql/test_returning.py