]> 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:33:46 +0000 (20:33 +0200)
commit22ede6eedce8fefdb2b81265e93f82b0960a5a57
treee376edec8c66c902af8fd938a5c8c35fd9b42576
parent8bb6aaa01bb292ffa7cc8db61d1b6f9c44fb5fc3
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
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