Skip to content

Commit 48b0f50

Browse files
committed
Mysqli doesn't support the named parameters used by PdoStore
1 parent 613dde5 commit 48b0f50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Store/PdoStore.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ private function getDriver(): string
307307
} else {
308308
switch ($this->driver = $con->getDriver()->getName()) {
309309
case 'mysqli':
310+
throw new NotSupportedException(sprintf('The store "%s" does not support the mysqli driver, use pdo_mysql instead.', \get_class($this)));
310311
case 'pdo_mysql':
311312
case 'drizzle_pdo_mysql':
312313
$this->driver = 'mysql';

0 commit comments

Comments
 (0)