Skip to content

Commit

Permalink
have_innodb variable is deprecated and removed in MySQL 5.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
erenkarayigit committed Mar 17, 2013
1 parent 5b266f6 commit 3f3eb37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php
Expand Up @@ -58,9 +58,9 @@ public function getVersion()
*/
public function supportEngine()
{
$variables = $this->_getConnection()
->fetchPairs('SHOW VARIABLES');
return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
$engines = $this->_getConnection()
->fetchPairs('SHOW ENGINES');
return (isset($engines['InnoDB']) && $engines['InnoDB'] != 'NO' && $engines['InnoDB'] != 'DISABLED');
}

/**
Expand Down

0 comments on commit 3f3eb37

Please sign in to comment.