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

Commit 218109d

Browse files
authored
Merge pull request #34 from Saritasa/patched-master
Fix 'Database not selected' error on privileges change
2 parents 298d149 + 34f1226 commit 218109d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/resource_grant.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func UpdateGrant(d *schema.ResourceData, meta interface{}) error {
303303
return err
304304
}
305305

306-
database := d.Get("database").(string)
306+
database := formatDatabaseName(d.Get("database").(string))
307307
table := d.Get("table").(string)
308308

309309
if d.HasChange("privileges") {

0 commit comments

Comments
 (0)