Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Update MySQLDriver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j authored Jan 30, 2019
1 parent 5400d7d commit 31cda34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Spiral/Database/Drivers/MySQL/MySQLDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 31cda34

Please sign in to comment.