diff --git a/UPGRADE.md b/UPGRADE.md index 20c6fedd97f..67e824debd0 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 2.11 +##`ServerInfoAwareConnection::requiresQueryForServerVersion()` is deprecated. + +The `ServerInfoAwareConnection::requiresQueryForServerVersion()` method has been deprecated as an implementation detail which is the same for almost all supported drivers. + ## The `ExceptionConverterDriver` interface is deprecated All drivers will have to implement the exception conversion API. diff --git a/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php b/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php index c97a60fa356..78ac3fda8e3 100644 --- a/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php +++ b/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php @@ -17,6 +17,8 @@ public function getServerVersion(); /** * Checks whether a query is required to retrieve the database server version. * + * @deprecated + * * @return bool True if a query is required to retrieve the database server version, false otherwise. */ public function requiresQueryForServerVersion();