Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Fix 'Database not selected' error on privileges change
Browse files Browse the repository at this point in the history
  • Loading branch information
populov committed Jun 20, 2021
1 parent 298d149 commit 34f1226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/resource_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func UpdateGrant(d *schema.ResourceData, meta interface{}) error {
return err
}

database := d.Get("database").(string)
database := formatDatabaseName(d.Get("database").(string))
table := d.Get("table").(string)

if d.HasChange("privileges") {
Expand Down

0 comments on commit 34f1226

Please sign in to comment.