]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Factor out constraints into separate methods
authorG Allajmi <ghaith.ger@gmail.com>
Tue, 9 Dec 2025 19:13:52 +0000 (14:13 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Dec 2025 20:12:41 +0000 (15:12 -0500)
commit613cc84ce5c90fe4308bbb12995c6030bc28467f
treebea392605418274e0013dd5b956ce54c5630b7b5
parentafaa0a3bc1abf8703871b8cbb352518087faa2cd
Factor out constraints into separate methods

Fixed issue where PostgreSQL dialect options such as ``postgresql_include``
on :class:`.PrimaryKeyConstraint` and :class:`.UniqueConstraint` were
rendered in the wrong position when combined with constraint deferrability
options like ``deferrable=True``. Pull request courtesy G Allajmi.

Fixes: #12867
Closes: #13003
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13003
Pull-request-sha: 1a9216062f12cba2695b0b4a1407e092556c2305

Change-Id: I8c55d8faae25d56ff63c9126d569c01d8ee6c7dd
(cherry picked from commit 9fe3c3cd30bd7d4afc877bb2243ba7679ebe185d)
doc/build/changelog/unreleased_20/12867.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
test/dialect/postgresql/test_compiler.py
test/sql/test_constraints.py