This commit is contained in:
xl
2023-05-02 15:43:20 +08:00
parent ae5e86c7e2
commit 4f6952bdc5
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ class Command extends Component
if (!$client->inTransaction()) {
$this->connection->release($client);
}
return $result == 0 ? true : $result;
return $result == 0 ? true : (int)$result;
} catch (Throwable $throwable) {
if (str_contains($throwable->getMessage(), 'MySQL server has gone away')) {
return $this->_execute();