From 11ad7217c2942b12cebf3e43a36a0bb6a901531a Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 10 Jan 2024 18:08:41 +0800 Subject: [PATCH] eee --- Command.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();