mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Query 的 delete() 方法使用 fetchSql() 报错
原代码第 `1976` 行 `$this->getRealSql($sql,$this->bind);` 应该修改为 `$this->connection->getRealSql($sql,$this->bind);`
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