]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Update SQLite UNIQUE inline constraint parsing to handle tabs
authorJohn A Stevenson <jostev@bgs.ac.uk>
Mon, 26 Aug 2024 15:05:38 +0000 (11:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Aug 2024 19:25:44 +0000 (15:25 -0400)
commit4c13e0c651f2dcb14a1a37c6d4105af145cccc0a
treefc23853741db1cfcfa3fc6c846682fe79b088af2
parent48a38511a2354615f1698250133abafb134e51a3
Update SQLite UNIQUE inline constraint parsing to handle tabs

Improvements to the regex used by the SQLite dialect to reflect the name
and contents of a UNIQUE constraint that is defined inline within a column
definition inside of a SQLite CREATE TABLE statement, accommodating for tab
characters present within the column / constraint line. Pull request
courtesy John A Stevenson.

Fixes: #11746
Closes: #11759
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11759
Pull-request-sha: 5752491154ad19e29abec8d69fa4076d996d964e

Change-Id: I048a90c992bfaf6857c1150f50bf3c6cc5697095
(cherry picked from commit 8071c21b5cb5009b45e8449dcb37b7c3786445e0)
doc/build/changelog/unreleased_20/11746.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py