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

reviewable/pr18780/r1
Toshio Kuratomi 9 years ago
parent b4a3fdd493
commit 9366dfb63e

@ -184,7 +184,7 @@ def server_version_check(cursor):
# 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'):
if 'mariadb' in version_str.lower():
return True
if (int(version[0]) <= 5 and int(version[1]) < 7):
return True

Loading…
Cancel
Save