exception error mode actually won't work

This commit is contained in:
Joby 2020-08-26 09:58:08 -06:00
parent 5526097af4
commit d99c09e575

View file

@ -26,7 +26,6 @@ abstract class AbstractDriver implements DSODriverInterface
public function pdo(\PDO $pdo = null): ?\PDO public function pdo(\PDO $pdo = null): ?\PDO
{ {
if ($pdo) { if ($pdo) {
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$this->pdo = $pdo; $this->pdo = $pdo;
} }