mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +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:
|
if escape:
|
||||||
db = "`%s`" % db
|
db = "`%s`" % db
|
||||||
table = "`%s`" % table
|
|
||||||
query = "GRANT %s ON %s.%s TO '%s'@'%s'" % (grant, db, table, user, host,)
|
query = "GRANT %s ON %s.%s TO '%s'@'%s'" % (grant, db, table, user, host,)
|
||||||
if grant_option:
|
if grant_option:
|
||||||
query += " WITH GRANT OPTION"
|
query += " WITH GRANT OPTION"
|
||||||
|
Loading…
Reference in New Issue
Block a user