]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
While parsing for check constraints, ignore newline characters in the check condition
authorEric Borczuk <eric@trialspark.com>
Fri, 28 Feb 2020 16:05:13 +0000 (11:05 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 29 Feb 2020 22:46:23 +0000 (17:46 -0500)
commit4df1823500fcdc4cc0efa6487115314a9c390301
tree0052b775e370a01a99bf10ce745c4afba46e51d0
parent30ee4263c0d7e17140be25af4c50681df787f933
While parsing for check constraints, ignore newline characters in the check condition

Fixed bug where PostgreSQL reflection of CHECK constraints would fail to
parse the constraint if the SQL text contained newline characters. The
regular expression has been adjusted to accommodate for this case. Pull
request courtesy Eric Borczuk.

Fixes: #5170
Closes: #5172
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5172
Pull-request-sha: 5701b7f09f723b727bbee95d19d107d6cc1d7717

Change-Id: If727e9140b645e8b685c3476fb0fa4417c1e6526
(cherry picked from commit 0fe528483afeb53300ff7a9770f7fb9c81a3a874)
doc/build/changelog/unreleased_13/5170.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py