改进Query类缓存更新 修正Connection类一处可能的错误

This commit is contained in:
thinkphp
2017-02-09 17:49:47 +08:00
parent 0d48f4a80c
commit 1e1f36eb40
2 changed files with 8 additions and 2 deletions

View File

@@ -365,8 +365,8 @@ abstract class Connection
$this->bind = $bind;
}
//释放前次的查询结果
if (!empty($this->PDOStatement) && $this->PDOStatement->queryString != $sql) {
// 释放前次的查询结果
if (!empty($this->PDOStatement)) {
$this->free();
}