mirror of
https://github.com/symfony/cache.git
synced 2026-03-23 23:22:07 +01:00
Mysqli doesn't support the named parameters used by PdoAdapter
This commit is contained in:
@@ -395,6 +395,7 @@ trait PdoTrait
|
||||
} 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';
|
||||
|
||||
Reference in New Issue
Block a user