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

DropIndex and RenameIndex fail in postgres driver when TablePrefix is… #675

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GordonFremen
Copy link

… used to specify schema

Explain your user case and expected results

To reproduce the issue for each function, comment in the respective block in TestGORM. run tests with the dialect set to "postgres" as there is dialect-specific SQL used to create the non-default schema.

I would expect that these two functions would use m.CurrentTable to table TablePrefix into account, but they do not. Explicitly adding the schema to the index name in the function argument makes these tests work, which confirms the cause.

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.

1 participant