diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index dba76bdc..c66515a2 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -521,7 +521,8 @@ abstract class Connection $item[] = $result; } } while ($this->PDOStatement->nextRowset()); - return $result; + $this->numRows = count($item); + return $item; } /**