]> 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:43:46 +0000 (19:43 -0400)
commit0d611b88911217727a174916b83e296e8c7105b1
tree24e63c124abb50db9ef5c550b61d232a71855f7b
parentd4182d4da96c622e262f1bb6ea9a077cde090b7e
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
doc/build/errors.rst
doc/build/orm/cascades.rst
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_cascade.py