mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
记录的sql日志 添加参数绑定信息
This commit is contained in:
@@ -129,6 +129,9 @@ abstract class Driver {
|
||||
$this->initConnect(false);
|
||||
if ( !$this->_linkID ) return false;
|
||||
$this->queryStr = $str;
|
||||
if(!empty($bind)){
|
||||
$this->queryStr .= '[ '.print_r($bind,true).' ]';
|
||||
}
|
||||
//释放前次的查询结果
|
||||
if ( !empty($this->PDOStatement) ) $this->free();
|
||||
$this->queryTimes++;
|
||||
@@ -158,6 +161,9 @@ abstract class Driver {
|
||||
$this->initConnect(true);
|
||||
if ( !$this->_linkID ) return false;
|
||||
$this->queryStr = $str;
|
||||
if(!empty($bind)){
|
||||
$this->queryStr .= '[ '.print_r($bind,true).' ]';
|
||||
}
|
||||
//释放前次的查询结果
|
||||
if ( !empty($this->PDOStatement) ) $this->free();
|
||||
$this->executeTimes++;
|
||||
|
||||
Reference in New Issue
Block a user