mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 20:54:25 -07:00
Add version comments to limit IF EXISTS clause only to versions that support it.
This commit is contained in:
parent
c194df3e51
commit
456019f111
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ def user_delete(cursor, user, host, host_all, check_mode):
|
||||||
hostnames = [host]
|
hostnames = [host]
|
||||||
|
|
||||||
for hostname in hostnames:
|
for hostname in hostnames:
|
||||||
cursor.execute("DROP USER /*!50700 IF EXISTS */ /*M!100103 IF EXISTS */ %s@%s", (user, hostname))
|
cursor.execute("DROP USER /*!50700 IF EXISTS */ /*M!100100 IF EXISTS */ %s@%s", (user, hostname))
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue