Skip to content

Commit a786448

Browse files
committed
Mysqli doesn't support the named parameters used by PdoAdapter
1 parent d695b43 commit a786448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ private function getConnection()
395395
} else {
396396
switch ($this->driver = $this->conn->getDriver()->getName()) {
397397
case 'mysqli':
398+
throw new \LogicException(sprintf('The adapter "%s" does not support the mysqli driver, use pdo_mysql instead.', \get_class($this)));
398399
case 'pdo_mysql':
399400
case 'drizzle_pdo_mysql':
400401
$this->driver = 'mysql';

0 commit comments

Comments
 (0)