修正Query类的query和execute方法参数 去掉fetch参数

This commit is contained in:
thinkphp
2016-06-28 18:52:56 +08:00
parent ef71b5e81d
commit 93882f4c8f

View File

@@ -178,16 +178,15 @@ class Query
* @access public * @access public
* @param string $sql sql指令 * @param string $sql sql指令
* @param array $bind 参数绑定 * @param array $bind 参数绑定
* @param boolean $fetch 不执行只是获取SQL
* @param boolean $master 是否在主服务器读操作 * @param boolean $master 是否在主服务器读操作
* @param bool|string $class 指定返回的数据集对象 * @param bool|string $class 指定返回的数据集对象
* @return mixed * @return mixed
* @throws BindParamException * @throws BindParamException
* @throws PDOException * @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 * @access public
* @param string $sql sql指令 * @param string $sql sql指令
* @param array $bind 参数绑定 * @param array $bind 参数绑定
* @param boolean $fetch 不执行只是获取SQL
* @param boolean $getLastInsID 是否获取自增ID * @param boolean $getLastInsID 是否获取自增ID
* @param boolean $sequence 自增序列名 * @param boolean $sequence 自增序列名
* @return int * @return int
* @throws BindParamException * @throws BindParamException
* @throws PDOException * @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);
} }
/** /**