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 #21 from winebarrel/fix_database_pase
Browse files Browse the repository at this point in the history
Fix grant db parse
  • Loading branch information
winebarrel authored Apr 28, 2020
2 parents e702ab5 + caa60b1 commit f45d217
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 @@ -485,7 +485,7 @@ func showGrants(db *sql.DB, user string) ([]*MySQLGrant, error) {
}

grant := &MySQLGrant{
Database: strings.Trim(m[2], "`"),
Database: strings.ReplaceAll(m[2], "`", ""),
Table: strings.Trim(m[3], "`"),
Privileges: privileges,
Grant: reGrant.MatchString(rawGrant),
Expand Down

0 comments on commit f45d217

Please sign in to comment.