This commit is contained in:
2023-04-06 22:55:34 +08:00
parent 5a96ca96cc
commit 84d1701ff7
+4
View File
@@ -179,6 +179,10 @@ class Command extends Component
}
$result = $client->lastInsertId();
$prepare->closeCursor();
if (!$client->inTransaction()) {
$this->connection->release($client);
}
return $result == 0 ? true : $result;
} catch (\Throwable $throwable) {
if (str_contains($throwable->getMessage(), 'MySQL server has gone away')) {