mariadb isn't always the last elemen of the version string

This commit is contained in:
Toshio Kuratomi 2015-12-17 13:45:04 -08:00 committed by Matt Clay
parent 0a64899eba
commit 65b9243056

View file

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