变更
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user