diff --git a/Command.php b/Command.php index ee2a6c1..f83ebe1 100644 --- a/Command.php +++ b/Command.php @@ -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();