mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
Update plugins/module_utils/mysql.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
b081ca495b
commit
776cb51f25
1 changed files with 1 additions and 4 deletions
|
@ -197,10 +197,7 @@ def get_server_type(cursor):
|
||||||
""" Return MySQL or MariaDB after quering the server
|
""" Return MySQL or MariaDB after quering the server
|
||||||
using SELECT VERSION()"""
|
using SELECT VERSION()"""
|
||||||
srv_ver = get_server_version(cursor)
|
srv_ver = get_server_version(cursor)
|
||||||
if 'mariadb' in srv_ver.lower():
|
return 'mariadb' if 'mariadb' in srv_ver.lower() else "mysql"
|
||||||
return "mariadb"
|
|
||||||
else:
|
|
||||||
return "mysql"
|
|
||||||
|
|
||||||
|
|
||||||
def get_server_version(cursor):
|
def get_server_version(cursor):
|
||||||
|
|
Loading…
Add table
Reference in a new issue