diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 3971b0d7..eb4021f3 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1218,7 +1218,7 @@ class Query // 生成删除SQL语句 $sql = $this->builder()->delete($options); // 执行操作 - return $this->execute($sql, $this->getBind(), $options['fetch_sql']); + return $this->connection->execute($sql, $this->getBind(), $options['fetch_sql']); } /**