]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve regex parsing of CHECK constraints for PostgreSQL.
authorGord Thompson <gord@gordthompson.com>
Thu, 19 Dec 2019 17:20:39 +0000 (12:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Jan 2020 14:31:31 +0000 (09:31 -0500)
commitd8ac1e9e6bfc931d2f14f9846d6924106f56b7e6
tree63c2f3ba202a100fcaca6e8982ff189ac0756b29
parenta54527fb0ef71aca0be9614617f143da27e03f22
Improve regex parsing of CHECK constraints for PostgreSQL.

Fixed issue where the PostgreSQL dialect would fail to parse a reflected
CHECK constraint that was a boolean-valued function (as opposed to a
boolean-valued expression).

Fixes: #5039
Closes: #5044
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5044
Pull-request-sha: b6903c656422abf658c4cc88b8cd03291d3a50f8

Change-Id: I7d39b104a8ce346cb593d541c1b4e5eab88867f9
doc/build/changelog/unreleased_13/5039.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py