]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix sqlite regex for quoted fk, pk names
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Nov 2025 02:57:28 +0000 (22:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Nov 2025 02:58:52 +0000 (22:58 -0400)
commit9a91f0b3a1c6ef2b11160549d53e0820f7e9e6b3
treee5d2edf1a990060be399988a2f0c1724ca5537a0
parent04751bf747d1db83abe34780cdfc3e20fe64e975
fix sqlite regex for quoted fk, pk names

Fixed issue where SQLite dialect would fail to reflect constraint names
that contained uppercase letters or other characters requiring quoting. The
regular expressions used to parse primary key, foreign key, and unique
constraint names from the ``CREATE TABLE`` statement have been updated to
properly handle both quoted and unquoted constraint names.

Fixes: #12954
Change-Id: If5c24f536795e5db867d857242013610a04638fc
(cherry picked from commit cdaf1824316ba6fa7b52164b50cd9fd4aeb2c41f)
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/testing/suite/test_reflection.py