]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reword delete-orphan on many error message and document
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 May 2020 17:05:00 +0000 (13:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 May 2020 23:45:24 +0000 (19:45 -0400)
commite4134886a4b51539cbe1fe2df4ae4c04dfc2b85f
tree2bb8b8c865458dc1ca643c4b5bf5cda9877a36fc
parent055027d29cb3e8485e36fac5bbffbd5c42fb7e4b
Reword delete-orphan on many error message and document

For many years we have encountered users making use of the
"single_parent" flag in response to the error message for
"delete-orphan" expressing this as a means to cancel the current
error.   However, the actual issue here is usually a misuse
of the delete-orphan cascade setting.  Reword the error message to
be much more descriptive about what this means and add new
error link sections describing the situation in as much detail
as possible.

Fixes: #5329
Change-Id: I7ba710378b2935479ab22ff9a0a79c692dbf69a6
(cherry picked from commit 0d611b88911217727a174916b83e296e8c7105b1)
doc/build/errors.rst
doc/build/orm/cascades.rst
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_cascade.py