]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use pg_get_constraintdef for CHECK constraint reflection
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 Jan 2019 21:56:44 +0000 (16:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Jan 2019 00:25:59 +0000 (19:25 -0500)
commit377f12696bb1af17bb14f676a49ef21428d537d3
tree6404ec58d222434282b577b992c88928db3ae9c1
parent99b7dd4512364f1f1f11212fd87355ea098a93a6
Use pg_get_constraintdef for CHECK constraint reflection

Revised the query used when reflecting CHECK constraints to make use of the
``pg_get_constraintdef`` function, as the ``consrc`` column is being
deprecated in PG 12.  Thanks to John A Stevenson for the tip.

Fixes: #4463
Change-Id: Ie0ee9bdfddb0635db72b35c2e2e4b27f154162fd
doc/build/changelog/unreleased_12/4463.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py