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

Fixed missing database name with table name. #153

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

murali-chevuri
Copy link
Contributor

@murali-chevuri murali-chevuri commented Apr 28, 2024

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

What did this pull request do?

Added fix for #152

Replaced clause.Table{Name: stmt.Table} with m.CurrentTable(stmt) which returns the table name with database name in DropTable, AlterColumn, RenameColumn, and RenameIndex.

User Case Description

Missing the database name which is configured through TableName function in DropTable query.

@jinzhu jinzhu merged commit c829f6e into go-gorm:master Jun 12, 2024
3 checks passed
@murali-chevuri murali-chevuri deleted the bug/missing_database_name branch September 3, 2024 19:30
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