Navigation Menu

Skip to content

Commit

Permalink
Remove unnecessary cleverness in stripping off the hyphen for mysql
Browse files Browse the repository at this point in the history
version checks that was causing problems in the case where there's no
hyphen.  version_compare handles hypens fine.
  • Loading branch information
bharat committed Aug 30, 2009
1 parent db03c5d commit 31dcdcc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions installer/installer.php
Expand Up @@ -110,9 +110,7 @@ static function verify_mysql_version($config) {

static function mysql_version($config) {
$result = mysql_query("SHOW VARIABLES WHERE variable_name = \"version\"");
$row = mysql_fetch_object($result);
$version = substr($row->Value, 0, strpos($row->Value, "-"));
return $version;
return $row->Value;
}

static function db_empty($config) {
Expand Down

0 comments on commit 31dcdcc

Please sign in to comment.