Skip to content

Commit 13982b5

Browse files
minor #37516 [Cache] Fix compat wth DBAL v3 (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Cache] Fix compat wth DBAL v3 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Follows doctrine/dbal#4152 Commits ------- d085243 [Cache] Fix compat wth DBAL v3
2 parents c0181c7 + d085243 commit 13982b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/Cache/Traits/PdoTrait.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,19 +373,25 @@ private function getConnection()
373373
case $driver instanceof \Doctrine\DBAL\Driver\DrizzlePDOMySql\Driver:
374374
case $driver instanceof \Doctrine\DBAL\Driver\Mysqli\Driver:
375375
case $driver instanceof \Doctrine\DBAL\Driver\PDOMySql\Driver:
376+
case $driver instanceof \Doctrine\DBAL\Driver\PDO\MySQL\Driver:
376377
$this->driver = 'mysql';
377378
break;
378379
case $driver instanceof \Doctrine\DBAL\Driver\PDOSqlite\Driver:
380+
case $driver instanceof \Doctrine\DBAL\Driver\PDO\SQLite\Driver:
379381
$this->driver = 'sqlite';
380382
break;
381383
case $driver instanceof \Doctrine\DBAL\Driver\PDOPgSql\Driver:
384+
case $driver instanceof \Doctrine\DBAL\Driver\PDO\PgSQL\Driver:
382385
$this->driver = 'pgsql';
383386
break;
384387
case $driver instanceof \Doctrine\DBAL\Driver\OCI8\Driver:
385388
case $driver instanceof \Doctrine\DBAL\Driver\PDOOracle\Driver:
389+
case $driver instanceof \Doctrine\DBAL\Driver\PDO\OCI\Driver:
386390
$this->driver = 'oci';
387391
break;
388392
case $driver instanceof \Doctrine\DBAL\Driver\SQLSrv\Driver:
393+
case $driver instanceof \Doctrine\DBAL\Driver\PDOSqlsrv\Driver:
394+
case $driver instanceof \Doctrine\DBAL\Driver\PDO\SQLSrv\Driver:
389395
$this->driver = 'sqlsrv';
390396
break;
391397
default:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy