]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix mssql index column order
authorAllen Chen <e2ne00@gmail.com>
Fri, 3 Oct 2025 02:53:34 +0000 (22:53 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 9 Oct 2025 18:32:51 +0000 (20:32 +0200)
commita2e862ebd09195248c39dc30de02180a9c31e367
tree8020838ebcc963f728e31b6c01751a2c924fca7d
parent4a9e9097658f3b2567086964e0aa42baf315b247
Fix mssql index column order

Fixed issue where the index reflection for SQL Server would
not correctly return the order of the column inside an index
when the order of the columns in the index did not match the
order of the columns in the table.
Pull request courtesy of Allen Chen.

Fixes: #12894
Closes: #12895
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12895
Pull-request-sha: bd9bd43219f35a29eaeee81fedea452afc64eb5d

Change-Id: I45ed30bbd0fcfd4f67cb2b682ecb3a18029be2b7
(cherry picked from commit 3dc9720c365a8d03e7c173874db74a080752d24e)
doc/build/changelog/unreleased_20/12894.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/mssql/test_reflection.py
test/requirements.py