This commit is contained in:
thinkphp
2016-05-19 16:02:13 +08:00

View File

@@ -158,13 +158,14 @@ class Query
* @param array $bind 参数绑定 * @param array $bind 参数绑定
* @param boolean $fetch 不执行只是获取SQL * @param boolean $fetch 不执行只是获取SQL
* @param boolean $getLastInsID 是否获取自增ID * @param boolean $getLastInsID 是否获取自增ID
* @param boolean $sequence 自增序列名
* @return int * @return int
* @throws DbBindParamException * @throws DbBindParamException
* @throws PDOException * @throws PDOException
*/ */
public function execute($sql, $bind = [], $fetch = false, $getLastInsID = false) public function execute($sql, $bind = [], $fetch = false, $getLastInsID = false,$sequence = null)
{ {
return $this->connection->execute($sql, $bind, $fetch, $getLastInsID); return $this->connection->execute($sql, $bind, $fetch, $getLastInsID,$sequence);
} }
/** /**