]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
check index_list pragma for number of columns returned
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Dec 2022 23:05:07 +0000 (18:05 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Dec 2022 14:50:12 +0000 (09:50 -0500)
commit7b150d43ce04a62ee83159855bdc4452ea02617a
tree18f1f33f45bb3cb93699945019db917c9b3069d6
parent2f279ce32235a69b9db6a0048230db9c34ff70db
check index_list pragma for number of columns returned

Fixed regression caused by new support for reflection of partial indexes on
SQLite added in 1.4.45 for :ticket:`8804`, where the ``index_list`` pragma
command in very old versions of SQLite (possibly prior to 3.8.9) does not
return the current expected number of columns, leading to exceptions raised
when reflecting tables and indexes.

Fixes: #8969
Change-Id: If317cdcfc6782f7e180df329b6ea0ddb48ce2269
(cherry picked from commit e026a0f3562bec5fbc18e223176be8121c147193)
doc/build/changelog/unreleased_14/8969.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py
test/requirements.py