Skip to content

Commit

Permalink
Mysqli doesn't support the named parameters used by PdoAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Jan 27, 2020
1 parent d695b43 commit a786448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/Cache/Traits/PdoTrait.php
Expand Up @@ -395,6 +395,7 @@ private function getConnection()
} else {
switch ($this->driver = $this->conn->getDriver()->getName()) {
case 'mysqli':
throw new \LogicException(sprintf('The adapter "%s" does not support the mysqli driver, use pdo_mysql instead.', \get_class($this)));
case 'pdo_mysql':
case 'drizzle_pdo_mysql':
$this->driver = 'mysql';
Expand Down

0 comments on commit a786448

Please sign in to comment.