Mysqli doesn't support the named parameters used by PdoStore

This commit is contained in:
Craig Duncan 2020-01-17 17:21:39 +00:00
parent 477e843790
commit ef3bcda5e3
1 changed files with 1 additions and 0 deletions

View File

@ -307,6 +307,7 @@ class PdoStore implements StoreInterface
} else {
switch ($this->driver = $con->getDriver()->getName()) {
case 'mysqli':
throw new NotSupportedException(sprintf('The store "%s" does not support the mysqli driver, use pdo_mysql instead.', \get_class($this)));
case 'pdo_mysql':
case 'drizzle_pdo_mysql':
$this->driver = 'mysql';