]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Skip expression-based index reflection for SQLite
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Jan 2019 16:42:02 +0000 (11:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Jan 2019 02:07:05 +0000 (21:07 -0500)
commitb5083e5fdcbcb2348559c3cf85787fcb057e8a39
treeebd8699470363d0f997e45f085454419a94a4307
parent017bf8365f047dd495fe1ef1b19df47e360e6a40
Skip expression-based index reflection for SQLite

Reflection of an index based on SQL expressions are now skipped with a
warning, in the same way as that of the Postgresql dialect, where we currently
do not support reflecting indexes that have SQL expressions within them.
Previously, an index with columns of None were produced which would break
tools like Alembic.

Fixes: #4431
Change-Id: I1363ade912d206b42669331e2be2bb6f444b65a2
(cherry picked from commit 08994cb97c501a3cf984fd827eba9aa9614b9dd3)
doc/build/changelog/unreleased_12/4431.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/requirements.py