diff --git a/src/Spiral/Database/Drivers/MySQL/MySQLDriver.php b/src/Spiral/Database/Drivers/MySQL/MySQLDriver.php index 85eaefdc..8c683148 100644 --- a/src/Spiral/Database/Drivers/MySQL/MySQLDriver.php +++ b/src/Spiral/Database/Drivers/MySQL/MySQLDriver.php @@ -101,10 +101,10 @@ public function getHandler(LoggerInterface $logger = null): AbstractHandler */ protected function clarifyException(\PDOException $exception, string $query): QueryException { - if ($exception->getCode() > 2000) { - return new ConnectionException($exception, $query); - } + //if ($exception->getCode() > 2000) { + // return new ConnectionException($exception, $query); + //} return new QueryException($exception, $query); } -} \ No newline at end of file +}