Mysqli doesn't support the named parameters used by PdoAdapter
This commit is contained in:
parent
d695b43b98
commit
a7864489b0
@ -395,6 +395,7 @@ trait PdoTrait
|
|||||||
} else {
|
} else {
|
||||||
switch ($this->driver = $this->conn->getDriver()->getName()) {
|
switch ($this->driver = $this->conn->getDriver()->getName()) {
|
||||||
case 'mysqli':
|
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 'pdo_mysql':
|
||||||
case 'drizzle_pdo_mysql':
|
case 'drizzle_pdo_mysql':
|
||||||
$this->driver = 'mysql';
|
$this->driver = 'mysql';
|
||||||
|
Reference in New Issue
Block a user