]> 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:21 +0000 (17:30 -0500)
commit0e4c4d7efc08d04c3c0ae960428b08ada37e4a91
tree4421c6681b9bc6025c5baccffbe5d61b901c48da
parent7d96ad4d535dc02a8ab1384df1db94dea2a045b5
- 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
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