]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support column list for foreign key ON DELETE SET actions on PostgreSQL
authorDenis Laxalde <denis@laxalde.org>
Thu, 13 Mar 2025 12:43:53 +0000 (08:43 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Mar 2025 18:02:24 +0000 (14:02 -0400)
commit39bb17442ce6ac9a3dde5e2b72376b77ffce5e28
treec1e35f204f66535390fb56c2c7d4d9043aaa7d8a
parent1d49add43530ecb4011b3fcd057a5273a3be774a
Support column list for foreign key ON DELETE SET actions on PostgreSQL

Added support for specifying a list of columns for ``SET NULL`` and ``SET
DEFAULT`` actions of ``ON DELETE`` clause of foreign key definition on
PostgreSQL.  Pull request courtesy Denis Laxalde.

Fixes: #11595
Closes: #12421
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12421
Pull-request-sha: d0394db7066ba8a8eaf3d3972d779f3e170e9406

Change-Id: I036a559ae4a8efafe9ba64d776a840bd785a7397
doc/build/changelog/unreleased_20/11595.rst [new file with mode: 0644]
doc/build/core/constraints.rst
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/schema.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_reflection.py
test/sql/test_compiler.py