]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
improve reflection of inline UNIQUE constraints
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 20 Feb 2022 14:51:22 +0000 (09:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Feb 2022 01:39:48 +0000 (20:39 -0500)
commit834af17a469fd1893acf20225e8400c0c908053f
tree65a06fad772c01399f4b7efb72301e37c692d942
parente120837b682a3a822c2dff136ad48b1ca9fb6ce2
improve reflection of inline UNIQUE constraints

Fixed issue where SQLite unique constraint reflection would not work
for an inline UNIQUE constraint where the column name had an underscore
in its name.

Added support for reflecting SQLite inline unique constraints where
the column names are formatted with SQLite "escape quotes" ``[]``
or `` ` ``, which are discarded by the database when producing the
column name.

Fixes: #7736
Change-Id: I635003478dc27193995f7d7a6448f9333a498706
doc/build/changelog/unreleased_14/7736.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py