From 7b57db8ab1e0153d61f4e266f735ae54cbb58658 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 13 Apr 2016 16:38:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=B0=83=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Driver.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/think/db/Driver.php b/library/think/db/Driver.php index ce158a96..7862d685 100644 --- a/library/think/db/Driver.php +++ b/library/think/db/Driver.php @@ -1988,7 +1988,6 @@ abstract class Driver */ public function select($data = []) { - dump($this->options['where']); if (false === $data) { // 用于子查询 不查询只返回SQL $this->options['fetch_sql'] = true; @@ -1996,7 +1995,7 @@ abstract class Driver // AR模式主键条件分析 $this->parsePkWhere($data); } - dump($this->options['where']); + $options = $this->_parseOptions(); $sql = $this->buildSelectSql($options); $resultSet = $this->query($sql, $this->getBindParams(), !empty($options['fetch_sql']) ? true : false, !empty($options['master']) ? true : false, isset($options['fetch_pdo']) ? $options['fetch_pdo'] : false); @@ -2089,7 +2088,6 @@ abstract class Driver } $this->via(); $this->model($currentModel); - dump($with); $this->options['with'] = $with; return $this; }