public getServerVersion ( string $type ) : string | ||
$type | string | Connection type (Config constants, e.g. Config::READ_WRITE) |
return | string | Empty if version cannot be determined |
public function getServerVersion($type)
{
$driver = $this->getConnection($type)->getWrappedConnection();
if ($driver instanceof ServerInfoAwareConnection) {
return $driver->getServerVersion();
}
return null;
}