]> 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:57:28 +0000 (22:57 -0400)
commitcdaf1824316ba6fa7b52164b50cd9fd4aeb2c41f
tree2e2647dcd47db5b2b432e010d7fae8844356f54c
parent5b9d175416425dfb70272890923b6b1313d8ed69
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
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/testing/suite/test_reflection.py