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

Commit

Permalink
Merge pull request #34 from Saritasa/patched-master
Browse files Browse the repository at this point in the history
Fix 'Database not selected' error on privileges change
  • Loading branch information
winebarrel authored Jun 21, 2021
2 parents 298d149 + 34f1226 commit 218109d
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 218109d

Please sign in to comment.