]> 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:49:30 +0000 (09:49 -0500)
commita8d76cff39dbaf6354d42d35cd68332df469d124
tree5eeed7a331136a84e2d8c9fe7ffaeb567102c0aa
parente0eea374c2df82f879d69b99ba2230c743bbae27
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
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