Merge pull request #127 from cbwfree/patch-1

Query 的 delete() 方法使用 fetchSql() 报错
This commit is contained in:
ThinkPHP
2016-06-14 16:53:57 +08:00
committed by GitHub

View File

@@ -1973,7 +1973,7 @@ class Query
$sql = $this->builder()->delete($options);
if($options['fetch_sql']){
// 获取实际执行的SQL语句
return $this->getRealSql($sql,$this->bind);
return $this->connection->getRealSql($sql,$this->bind);
}
// 执行操作
return $this->execute($sql, $this->getBind());