Fix sanity checks

This commit is contained in:
William Welter 2024-01-16 13:49:53 +00:00
parent 690ac6fb13
commit aa7c5be84a

View file

@ -206,12 +206,14 @@ def get_server_version(cursor):
return version_str
def get_server_implementation(cursor):
if 'mariadb' in get_server_version(cursor).lower():
return "mariadb"
else:
return "mysql"
def is_mariadb(implementation):
if implementation == "mariadb":
return True
@ -224,6 +226,7 @@ def is_mysql(implementation):
else:
return False
def set_session_vars(module, cursor, session_vars):
"""Set session vars."""
for var, value in session_vars.items():