Account for mariadb versioning

This commit is contained in:
Toshio Kuratomi 2015-12-16 14:07:17 -08:00 committed by Matt Clay
parent d48dffc298
commit dafb39da2e

View file

@ -182,6 +182,10 @@ def server_version_check(cursor):
version_str = result[0]
version = version_str.split('.')
# Currently we have no facility to handle new-style password update on
# mariadb and the old-style update continues to work
if version_str.lower().endswith('mariadb'):
return True
if (int(version[0]) <= 5 and int(version[1]) < 7):
return True
else: