]> 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:59 +0000 (20:39 -0500)
commit9d0a17ad27e9eab14bd52ec54fbfb4803c74a535
tree09d9eec83bd1f4cb97c3fae2aaa41d4339fba8cb
parent63c398b7cf500b1a60eb383d30ff60fc36e3a806
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
(cherry picked from commit 834af17a469fd1893acf20225e8400c0c908053f)
doc/build/changelog/unreleased_14/7736.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py