XE와 마리아DB과 호환되게 수정

This commit is contained in:
SMaker 2014-02-26 14:30:59 +09:00
parent ba18449544
commit cf0107ff30

View file

@ -85,9 +85,9 @@ class DBMysql extends DB
return; return;
} }
// Error appears if the version is lower than 4.1 // Error appears if the version is lower than 4.1
if(mysql_get_server_info($result) < "4.1") if(version_compare(mysql_get_server_info($result), '4.1', '<'))
{ {
$this->setError(-1, "XE cannot be installed under the version of mysql 4.1. Current mysql version is " . mysql_get_server_info()); $this->setError(-1, 'XE cannot be installed under the version of mysql 4.1. Current mysql version is ' . mysql_get_server_info());
return; return;
} }
// select db // select db