mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Merge pull request #127 from cbwfree/patch-1
Query 的 delete() 方法使用 fetchSql() 报错
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user