diff --git a/UPGRADE.md b/UPGRADE.md index 8fab44e6ab8..10eb5e062d5 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. + ## Statement constructors are marked internal The driver and wrapper statement objects can be only created by the corresponding connection objects. 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();