Skip to content
Snippets Groups Projects
Commit 2991ed4d authored by Prasad's avatar Prasad
Browse files

Merge branch 'DB_version_compare_for_installation' into 'master'

Wrong compare DB version

MariaDB 10.5.1 version was recognized as < 4.1 version
Use version_compare() function instead of $mysql_server_version < 4.1

See merge request !875
parents 182829a6 ed322286
No related branches found
No related tags found
No related merge requests found
......@@ -437,7 +437,7 @@ class Install_Utils_Model {
$error_msg_info = getTranslatedString('MSG_LIST_REASONS', 'Install').':<br>
- '.getTranslatedString('MSG_DB_PARAMETERS_INVALID', 'Install').'
- '.getTranslatedString('MSG_DB_USER_NOT_AUTHORIZED', 'Install');
} elseif(self::isMySQL($db_type) && $mysql_server_version < 4.1) {
} elseif(self::isMySQL($db_type) && version_compare($mysql_server_version,4.1,'<')) {
$error_msg = $mysql_server_version.' -> '.getTranslatedString('ERR_INVALID_MYSQL_VERSION', 'Install');
} elseif(!$db_sqlmode_support) {
$error_msg = getTranslatedString('ERR_DB_SQLMODE_NOTFRIENDLY', 'Install');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment