Merge pull request #1019 from fatbox/mysql-grant-fix

Only escape the database name, not the table
This commit is contained in:
Thomas S Hatch 2012-03-28 13:14:54 -07:00
commit af18d2da7f

View File

@ -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"