mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #1019 from fatbox/mysql-grant-fix
Only escape the database name, not the table
This commit is contained in:
commit
af18d2da7f
@ -539,7 +539,6 @@ def __grant_generate(grant,
|
||||
|
||||
if escape:
|
||||
db = "`%s`" % db
|
||||
table = "`%s`" % table
|
||||
query = "GRANT %s ON %s.%s TO '%s'@'%s'" % (grant, db, table, user, host,)
|
||||
if grant_option:
|
||||
query += " WITH GRANT OPTION"
|
||||
|
Loading…
Reference in New Issue
Block a user