]> 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:03 +0000 (14:37 -0500)
commit87929a9c55163ebcd7edd031d222c7f115922842
treeaa623681f1da545633fe7021e5ba030a1d46549e
parent4279e715e0b4af819a0434daa5bf9e0c18789bec
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
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