Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2015 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f64afee7bf4baa134ec4 to your computer and use it in GitHub Desktop.
Save anonymous/f64afee7bf4baa134ec4 to your computer and use it in GitHub Desktop.
public function checkInnodbSupport($type)
{
$this->_checkConnection();
$this->_checkType($type);
$sql = $this->_quote("SHOW VARIABLES LIKE ?", 'have_innodb');
$res = mysql_query($sql, $this->_getConnection($type));
$row = mysql_fetch_assoc($res);
if ($row && strtoupper($row['Value']) == 'YES') {
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment