From 8c39270c58d00d8858359a82bc9b4c735034a78a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 8 Aug 2016 11:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bsql=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index f5182be4..6c2a0ce0 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -793,7 +793,7 @@ abstract class Connection } } else { // 未注册监听则记录到日志中 - Log::record('[ SQL ] ' . $this->queryStr . ' [ RunTime:' . $runtime . 's ]', 'sql'); + Log::record('[ SQL ] ' . $sql . ' [ RunTime:' . $runtime . 's ]', 'sql'); if (!empty($explain)) { Log::record('[ EXPLAIN : ' . var_export($explain, true) . ' ]', 'sql'); }