]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support reflecting no inherit check constraint in pg.
authorEllis Valentiner <ellisvalentiner@gmail.com>
Mon, 8 Jan 2024 16:16:21 +0000 (11:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Jan 2024 16:59:04 +0000 (11:59 -0500)
commit9e33ba6cf8709081cd0f9afe483effca5708e1ef
tree44c1af252bd7b421220be3a3210a3994e6a2431f
parent8d7d30c782b948ba9c2fc9380760cc269287417a
Support reflecting no inherit check constraint in pg.

Added support for reflection of PostgreSQL CHECK constraints marked with
"NO INHERIT", setting the key ``no_inherit=True`` in the reflected data.
Pull request courtesy Ellis Valentiner.

Fixes: #10777
Closes: #10778
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10778
Pull-request-sha: 058082ff6297f9ccdc4977e65ef024e9a093426e

Change-Id: Ia33e29c0c57cf0076e8819311f4628d712fdc332
(cherry picked from commit 890b84e1693ce702ef0e20046cadc6e741274013)
doc/build/changelog/unreleased_20/10777.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py