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

Bug fix to handle index name containing upper case chars #165

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

mysticmind
Copy link
Member

@mysticmind mysticmind commented Jan 13, 2025

Note that if you don't add quotes around index name containing upper case chars, Postgres will convert it to lower case index name.

@jakobt
Copy link

jakobt commented Jan 13, 2025

Hi @mysticmind

It seems its only the create statement that we are quoting the name in case of uppercase characters in this change but as far as i remember you will need to quote every time you reference it in the future to, i would imagine Weasel has some places where indexes are dropped too?

@mysticmind
Copy link
Member Author

@jakobt i will take a look and confirm things for the drop statement. I might tweak the logic a bit to deal with it.

@mysticmind
Copy link
Member Author

@jakobt Quick note, it is dealt with properly now for both create and drop.

@jeremydmiller jeremydmiller merged commit 1801549 into master Jan 14, 2025
8 checks passed
@jeremydmiller jeremydmiller deleted the handle_table_index_name_with_upper_case_chars branch January 14, 2025 17:18
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.

Marten keeps recreating indexes
3 participants