Skip to content

Commit

Permalink
Properly handle MySQL error code 4031 from PHP 8.4
Browse files Browse the repository at this point in the history
It has been introduced in:
mysql/mysql-server@14508bb

And PHP 8.4 will support it:
php/php-src#13618
  • Loading branch information
mbeccati committed Apr 22, 2024
1 parent edbf307 commit d0b5e1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Driver/API/MySQL/ExceptionConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function convert(Exception $exception, ?Query $query): DriverException
return new ConnectionException($exception, $query);

case 2006:
case 4031:
return new ConnectionLost($exception, $query);

case 1048:
Expand Down

0 comments on commit d0b5e1a

Please sign in to comment.