]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reflect broader range of check constraints for SQLite.
authorJeff Horemans <jeff.horemans@vortex-financials.be>
Tue, 13 Aug 2024 15:22:51 +0000 (11:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Aug 2024 20:40:10 +0000 (16:40 -0400)
commit4c8469947d79766813bc9326ef16c25ff6882f53
tree0bc648d25b42caea7f151f4d3bd772a2ce264633
parentfdac33149b85480b7ec34e86f031afb8a0a9e54f
Reflect broader range of check constraints for SQLite.

Improvements to the regex used by the SQLite dialect to reflect the name
and contents of a CHECK constraint.  Constraints with newline, tab, or
space characters in either or both the constraint text and constraint name
are now properly reflected.   Pull request courtesy Jeff Horemans.

Fixes: #11677
Closes: #11701
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11701
Pull-request-sha: b2d629f18695ecb08cddeb99d7c2573e1f3d04b2

Change-Id: I2dd06c778e7c130848e418a80004032eb6144e6d
doc/build/changelog/unreleased_20/11677.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py