Fix mssql index column order#12895
Conversation
|
local test |
|
cool this looks pretty good! you got into the test framework and all that, great. I can take it from here where I do changelog + 2.0 backport |
|
Thanks. |
sqla-tester
left a comment
There was a problem hiding this comment.
OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision bd9bd43 of this pull request into gerrit so we can run tests and reviews and stuff
|
New Gerrit review created for change bd9bd43: https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/6184 |
|
Michael Bayer (zzzeek) wrote: @CaselIT will add changelog and do backport View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/6184 |
|
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/6184 has been merged. Congratulations! :) |
|
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/6193 has been merged. Congratulations! :) |
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: #12895 Pull-request-sha: bd9bd43 Change-Id: I45ed30bbd0fcfd4f67cb2b682ecb3a18029be2b7 (cherry picked from commit 3dc9720c365a8d03e7c173874db74a080752d24e)
|
thanks! |
Description
This pr make mssql clustered index columns return with correct order.
Fixes: #12894
Closes: #12894
local test:
before
after
Checklist
order bycommand in sqlalchemy/dialects/mssql/base.py get_indexes() methodThis pull request is:
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
Fixes: #<issue number>in the commit messageHave a nice day!