Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

修复fetchSql释放参数绑定 #529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ThinkPHP/Library/Think/Db/Driver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ public function execute($str, $fetchSql = false)
$this->queryStr = strtr($this->queryStr, array_map(function ($val) use ($that) {return '\'' . $that->escapeString($val) . '\'';}, $this->bind));
}
if ($fetchSql) {
$this->bind = array();
return $this->queryStr;
}
//释放前次的查询结果
Expand Down