Skip to content

Conversation

@iTanken
Copy link
Contributor

@iTanken iTanken commented Mar 14, 2025

due to the mismatch between the Index struct field order and the indexSQL field order

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

@jinzhu Fix the issue where the GetIndexes method returns zero values due to the inconsistency between the Index structure and the order of fields in the indexSQL field.

User Case Description

Retrieve the primary key, unique constraint, or ordinary index information for the table structure corresponding to the specified model.

due to the mismatch between the `Index` struct field order and the `indexSQL` field order
@jinzhu jinzhu merged commit 4f2c3fe into go-gorm:master May 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants