Revise DROP USER/ROLE commands with more specific version numbers to constrain IF EXISTS usage.

This commit is contained in:
MattMontgomeryKochava 2022-02-14 14:10:15 -06:00
commit a268f5d28a
3 changed files with 3 additions and 3 deletions

View file

@ -368,7 +368,7 @@ def user_delete(cursor, user, host, host_all, check_mode):
hostnames = [host]
for hostname in hostnames:
cursor.execute("DROP USER /*!50700 IF EXISTS */ /*M!100100 IF EXISTS */ %s@%s", (user, hostname))
cursor.execute("DROP USER /*!50708 IF EXISTS */ /*M!100103 IF EXISTS */ %s@%s", (user, hostname))
return True