Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: create index failed without err #285

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

zhangzhiqiangcs
Copy link
Contributor

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

What did this pull request do?

Check index exists after create index. If not exists, return the err.

We run into this case, because we use the same index name for difference table, and the migration executed successfuly. But when use do some request, we got a err ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification (SQLSTATE 42P10 becase we must make sure the index exists.

@jinzhu jinzhu merged commit 0d37bf2 into go-gorm:master Sep 23, 2024
1 check 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