- changed status to resolved
allow deleted rows check to take place based on flag
Issue #3007
resolved
see #2403 for original rationale to remote the "check deleted rows", we'll now do this:
mapper(Parent, parent, confirm_deleted_rows=False)
the flag defaults to True and just emits a warning when the rows matched don't match.
Comments (1)
-
reporter - Log in to comment
.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 also2403
for background on the original change. re:#2403fix#3007→ <<cset d6618e411955>>