]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Update SQLite unique constraint parser to handle tabs 11759/head
authorJohn A Stevenson <jostev@bgs.ac.uk>
Mon, 19 Aug 2024 16:59:36 +0000 (17:59 +0100)
committerJohn A Stevenson <jostev@bgs.ac.uk>
Mon, 26 Aug 2024 14:47:20 +0000 (15:47 +0100)
commit5752491154ad19e29abec8d69fa4076d996d964e
tree0c3cb93a38e6d51adf0356d6648f9bf483ea404b
parent98836f07f3219ab49aaabeb3a647d9a9799aacd5
Update SQLite unique constraint parser to handle tabs

Fixes: #11746
Sometimes the whitespace between fields in a column definition in SQLite
can be tabs instead of spaces, particularly between the column name and
the type definition.  This commit updates the regular expression used to
detect UNIQUE constraints so that it handles this situation.
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py