Fix issue by using dict attribute

This commit is contained in:
William Welter 2024-01-04 17:26:44 +00:00
parent b2072a2b24
commit db4c50e64c

View file

@ -756,7 +756,7 @@ def main():
module.fail_json(msg)
cursor.execute("SELECT VERSION()")
if 'mariadb' in cursor.fetchone()[0].lower():
if 'mariadb' in cursor.fetchone()["VERSION()"].lower():
server_implementation = "mariadb"
else:
server_implementation = "mysql"