]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added new parameter :paramref:`.mapper.confirm_deleted_rows`. Defaults
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Mar 2014 22:00:35 +0000 (18:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Mar 2014 22:00:35 +0000 (18:00 -0400)
commitd6618e41195587291c4a82af0db43fbd993b6c77
treea93e608f2a145621ef19dfc869b78806e9b2f5bd
parenta0329f71ad48b16ad9dad44d5a5cb2c920e569f1
- Added new parameter :paramref:`.mapper.confirm_deleted_rows`.  Defaults
to True, indicates that a series of DELETE statements should confirm
that the cursor rowcount matches the number of primary keys that should
have matched;  this behavior had been taken off in most cases
(except when version_id is used) to support the unusual edge case of
self-referential ON DELETE CASCADE; to accomodate this, the message
is now just a warning, not an exception, and the flag can be used
to indicate a mapping that expects self-refererntial cascaded
deletes of this nature.  See also :ticket:`2403` for background on the
original change. re: #2403 fix #3007
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/persistence.py
test/orm/test_unitofwork.py
test/orm/test_unitofworkv2.py