]> 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:45:05 +0000 (17:45 -0500)
commit0fe528483afeb53300ff7a9770f7fb9c81a3a874
tree762727472158896a8e6680e7d8abe95b586002ab
parent132006ba8a714199d4f761b0e66fc2e516e46ba3
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
doc/build/changelog/unreleased_13/5170.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py