Add ORDER BY SEQ_IN_INDEX to MySQL GetIndexes to Fix IndexTests #2152

Merged
lunny merged 1 commits from zeripath/xorm:fix-indices-test into master 2022-05-30 10:36:23 +00:00
Contributor

MySQL8 appears to return indices in non-SEQ_IN_INDEX order but rather in
column order by default. Adding ORDER BY SEQ_IN_INDEX will result in
index columns being added in the correct order fixing the test.

Signed-off-by: Andrew Thornton art27@cantab.net

MySQL8 appears to return indices in non-SEQ_IN_INDEX order but rather in column order by default. Adding ORDER BY SEQ_IN_INDEX will result in index columns being added in the correct order fixing the test. Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added 1 commit 2022-05-30 10:02:32 +00:00
Add ORDER BY SEQ_IN_INDEX to MySQL GetIndexes to Fix IndexTests
MySQL8 appears to return indices in non-SEQ_IN_INDEX order but rather in
column order by default. Adding ORDER BY SEQ_IN_INDEX will result in
index columns being added in the correct order fixing the test.

Signed-off-by: Andrew Thornton <art27@cantab.net>
All checks were successful
continuous-integration/drone/pr Build is passing
5adbdfa1ee
lunny approved these changes 2022-05-30 10:09:18 +00:00
lunny merged commit eeb7fcf22c into master 2022-05-30 10:36:23 +00:00
lunny added the
kind
bug
label 2022-05-30 10:36:32 +00:00
lunny added this to the 1.3.1 milestone 2022-05-30 10:36:41 +00:00
Sign in to join this conversation.
No description provided.