]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add local column to dependency rule error message
authorJan Vollmer <jan@vllmr.dev>
Wed, 22 Nov 2023 18:16:27 +0000 (13:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Nov 2023 19:37:53 +0000 (14:37 -0500)
commit67e478e213c05c35c7ea8b31ab88a0d9490d44f1
tree3384223863904b1575de616e3a7bf75852645b5d
parent6e8362d2b9f7aa331ccebbb882d7234edf22a080
add local column to dependency rule error message

Improved the error message produced when the unit of work process sets the
value of a primary key column to NULL due to a related object with a
dependency rule on that column being deleted, to include not just the
destination object and column name but also the source column from which
the NULL value is originating.  Pull request courtesy Jan Vollmer.

Fixes: #10668
Closes: #10669
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10669
Pull-request-sha: d7f9952b81394d585e55dad6d6f355aaa54f599e

Change-Id: I210317f8777ff07d9eec674b79f2140523af38d0
(cherry picked from commit 87929a9c55163ebcd7edd031d222c7f115922842)
doc/build/changelog/unreleased_20/10668.rst [new file with mode: 0644]
lib/sqlalchemy/orm/sync.py
test/orm/test_relationships.py
test/orm/test_sync.py