This commit is contained in:
Markus Bergholz 2023-02-07 16:36:37 +01:00
commit ade51d74a5
No known key found for this signature in database

View file

@ -692,6 +692,8 @@ def privileges_revoke(cursor, user, host, db_table, priv, grant_option, maria_ro
query = ' '.join(query)
cursor.execute(query, (user, host))
priv_string = ",".join([p for p in priv if p not in ('GRANT', )])
if priv_string != "":
query = ["REVOKE %s ON %s" % (priv_string, db_table)]
if not maria_role: