public function getMysqlVariableValue($variable)
{
$statement = $this->getConnection()->query("SELECT @@{$variable};");
if (false === $statement) {
throw new RuntimeException(sprintf('Failed to query mysql variable %s', var_export($variable, 1)));
}
$result = $statement->fetch(PDO::FETCH_ASSOC);
if ($result) {
return $result;
}
return false;
}