change partition to rpartition in mysql grants #656

This commit is contained in:
Thomas S Hatch 2012-02-08 07:47:25 -07:00
parent f2e50d9579
commit f196cb52ea

View File

@ -516,7 +516,7 @@ def __grant_generate(grant,
# todo: Re-order the grant so it is according to the SHOW GRANTS for xxx@yyy query (SELECT comes first, etc)
grant = grant.replace(',', ', ').upper()
db_part = database.partition('.')
db_part = database.rpartition('.')
db = db_part[0]
table = db_part[2]