Skip to content

Commit 8bdb609

Browse files
authored
Merge pull request #4114 from morozov/deprecate-requires-query-for-server-version
Deprecate ServerInfoAwareConnection#requiresQueryForServerVersion() as an implementation detail
2 parents 70115f8 + b65aa91 commit 8bdb609

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Upgrade to 2.11
22

3+
##`ServerInfoAwareConnection::requiresQueryForServerVersion()` is deprecated.
4+
5+
The `ServerInfoAwareConnection::requiresQueryForServerVersion()` method has been deprecated as an implementation detail which is the same for almost all supported drivers.
6+
37
## Statement constructors are marked internal
48

59
The driver and wrapper statement objects can be only created by the corresponding connection objects.

lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public function getServerVersion();
1717
/**
1818
* Checks whether a query is required to retrieve the database server version.
1919
*
20+
* @deprecated
21+
*
2022
* @return bool True if a query is required to retrieve the database server version, false otherwise.
2123
*/
2224
public function requiresQueryForServerVersion();

0 commit comments

Comments
 (0)