Skip to content

Commit 585713e

Browse files
authored
Merge pull request #3554 from morozov/deprecate-user-provided-pdo
The usage of user-provided PDO instance is deprecated
2 parents 04cb1b4 + fa24a9e commit 585713e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

UPGRADE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Upgrade to 2.10
22

3+
## Deprecated usage of user-provided `PDO` instance
4+
5+
The usage of user-provided `PDO` instance is deprecated. The known use cases are:
6+
7+
1. **Persistent PDO connections.** DBAL 3.0 will supported establishing persistent connections, therefore, providing a pre-created persistent PDO connection will be no longer needed.
8+
2. **Sharing `PDO` instance between DBAL and legacy components.** In order to share a PDO instance, initialize the connection in DBAL and access it using `Connection::getWrappedConnection()->getWrappedConnection()`.
9+
310
## MINOR BC BREAK: Default values are no longer handled as SQL expressions
411

512
They are converted to SQL literals (e.g. escaped). Clients must now specify default values in their initial form, not in the form of an SQL literal (e.g. escaped).

0 commit comments

Comments
 (0)