Skip to content

Commit 94d72ea

Browse files
committed
Properly handle MySQL error code 4031 from PHP 8.4
It has been introduced in: mysql/mysql-server@14508bb And PHP 8.4 will support it: php/php-src#13618
1 parent edbf307 commit 94d72ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Driver/API/MySQL/ExceptionConverter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public function convert(Exception $exception, ?Query $query): DriverException
101101
return new ConnectionException($exception, $query);
102102

103103
case 2006:
104+
case 4031:
104105
return new ConnectionLost($exception, $query);
105106

106107
case 1048:

0 commit comments

Comments
 (0)