From 7d517177bc10d14b6cfdf9ca2192b97b4e552aa5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 24 Jan 2017 16:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4Connection=E7=B1=BB=E5=BA=9F?= =?UTF-8?q?=E5=BC=83=E5=B1=9E=E6=80=A7resultSetType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index b2d6a305..f14e010b 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -50,8 +50,6 @@ abstract class Connection protected $linkRead; protected $linkWrite; - // 查询结果类型 - protected $resultSetType = 'array'; // 查询结果类型 protected $fetchType = PDO::FETCH_ASSOC; // 字段属性大小写 @@ -269,10 +267,7 @@ abstract class Connection } // 记录当前字段属性大小写设置 $this->attrCase = $params[PDO::ATTR_CASE]; - // 记录数据集返回类型 - if (isset($config['resultset_type'])) { - $this->resultSetType = $config['resultset_type']; - } + // 数据返回类型 if (isset($config['result_type'])) { $this->fetchType = $config['result_type'];