This commit is contained in:
2024-01-10 18:08:41 +08:00
parent b647716f1c
commit 11ad7217c2
+3 -1
View File
@@ -97,11 +97,13 @@ class Command extends Component
}
$prepare->execute($this->params);
$count = $prepare->rowCount();
$prepare->closeCursor();
$this->connection->println($this->sql, $this->params);
return $prepare->rowCount();
return $count;
} catch (Throwable $throwable) {
if ($this->isRefresh($throwable)) return $this->rowCount();