eee
This commit is contained in:
+1
-5
@@ -135,12 +135,8 @@ class Command extends Component
|
|||||||
[$client, $prepare] = $this->_prepare();
|
[$client, $prepare] = $this->_prepare();
|
||||||
$result = $client->lastInsertId();
|
$result = $client->lastInsertId();
|
||||||
$prepare->closeCursor();
|
$prepare->closeCursor();
|
||||||
$rowCount = $prepare->rowCount();
|
|
||||||
$this->connection->release($client);
|
$this->connection->release($client);
|
||||||
if ($rowCount < 1) {
|
return $result == 0 ? $prepare->rowCount() > 0 : (int)$result;
|
||||||
return trigger_print_error("更新失败", 'mysql');
|
|
||||||
}
|
|
||||||
return $result == 0 ? true : (int)$result;
|
|
||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
if ($this->isRefresh($throwable)) {
|
if ($this->isRefresh($throwable)) {
|
||||||
return $this->_execute();
|
return $this->_execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user