变更
This commit is contained in:
@@ -179,6 +179,10 @@ class Command extends Component
|
|||||||
}
|
}
|
||||||
$result = $client->lastInsertId();
|
$result = $client->lastInsertId();
|
||||||
$prepare->closeCursor();
|
$prepare->closeCursor();
|
||||||
|
|
||||||
|
if (!$client->inTransaction()) {
|
||||||
|
$this->connection->release($client);
|
||||||
|
}
|
||||||
return $result == 0 ? true : $result;
|
return $result == 0 ? true : $result;
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
if (str_contains($throwable->getMessage(), 'MySQL server has gone away')) {
|
if (str_contains($throwable->getMessage(), 'MySQL server has gone away')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user