From 4c456e3b4ef68b52eb0cd51bc74fa4e274d59bce Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 26 May 2016 10:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=8B=E5=8A=A1=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } /**