]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
PGDialect.get_check_constraints: Handle "NOT VALID" 4825/head
authorBill Finn <bill@angaza.com>
Mon, 26 Aug 2019 21:22:44 +0000 (21:22 +0000)
committerBill Finn <bill@angaza.com>
Mon, 26 Aug 2019 21:25:14 +0000 (21:25 +0000)
commita0e1ab133c2d46521a74e55423ac2ba866682dae
tree0ba213f9abaabef3fb75b9aa6cd1c0c7e782bca0
parentfa5db637dc93b3e2ec09506735833f2e764f3a0f
PGDialect.get_check_constraints: Handle "NOT VALID"

PostgreSQL supports creating "not valid" check constraints that contain
the string " NOT VALID" in their declaration. Here, we update our
regular expression to properly parse check constraints that have yet to
be validated.

Fixes #4824.
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py