lib/Doctrine/DBAL/Connection.php
private function getServerVersion()
    {
        $connection = $this->getWrappedConnection();

        // Automatic platform version detection.
        if ($connection instanceof ServerInfoAwareConnection && ! $connection->requiresQueryForServerVersion()) {
            return $connection->getServerVersion();
        }

        // Unable to detect platform version.
        return null;
    }
private function getServerVersion()
    {
        $connection = $this->getWrappedConnection();

        // Automatic platform version detection.
        if ($connection instanceof ServerInfoAwareConnection && ! $connection->requiresQueryForServerVersion()) {
            return $connection->getServerVersion();
        }

        // Unable to detect platform version.
        return null;
    }
private function getServerVersion ( ) { $ connection = $ this -> getWrappedConnection ( ) ; // Automatic platform version detection. if ( $ connection instanceof ServerInfoAwareConnection && ! $ connection -> requiresQueryForServerVersion ( ) ) { return $ connection -> getServerVersion ( ) ; } // Unable to detect platform version. return null ; }
Returns the database server version if the underlying driver supports it.

@return string|null
Returns the database server version if the underlying driver supports it .