From 93882f4c8f065a6f4ec3e6669a36e417913aa8b5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 28 Jun 2016 18:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB=E7=9A=84query?= =?UTF-8?q?=E5=92=8Cexecute=E6=96=B9=E6=B3=95=E5=8F=82=E6=95=B0=20?= =?UTF-8?q?=E5=8E=BB=E6=8E=89fetch=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 0f92143a..edeefb72 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -178,16 +178,15 @@ class Query * @access public * @param string $sql sql指令 * @param array $bind 参数绑定 - * @param boolean $fetch 不执行只是获取SQL * @param boolean $master 是否在主服务器读操作 * @param bool|string $class 指定返回的数据集对象 * @return mixed * @throws BindParamException * @throws PDOException */ - public function query($sql, $bind = [], $fetch = false, $master = false, $class = false) + public function query($sql, $bind = [], $master = false, $class = false) { - return $this->connection->query($sql, $bind, $fetch, $master, $class); + return $this->connection->query($sql, $bind, $master, $class); } /** @@ -195,16 +194,15 @@ class Query * @access public * @param string $sql sql指令 * @param array $bind 参数绑定 - * @param boolean $fetch 不执行只是获取SQL * @param boolean $getLastInsID 是否获取自增ID * @param boolean $sequence 自增序列名 * @return int * @throws BindParamException * @throws PDOException */ - public function execute($sql, $bind = [], $fetch = false, $getLastInsID = false, $sequence = null) + public function execute($sql, $bind = [], $getLastInsID = false, $sequence = null) { - return $this->connection->execute($sql, $bind, $fetch, $getLastInsID, $sequence); + return $this->connection->execute($sql, $bind, $getLastInsID, $sequence); } /**