This commit is contained in:
thinkphp
2017-05-18 13:59:55 +08:00
parent 1bdd33277c
commit 8cc44f8bf6

View File

@@ -879,7 +879,6 @@ abstract class Connection
Debug::remark('queryEndTime', 'time');
$runtime = Debug::getRangeTime('queryStartTime', 'queryEndTime');
$sql = $sql ?: $this->getLastsql();
$log = $sql . ' [ RunTime:' . $runtime . 's ]';
$result = [];
// SQL性能分析
if ($this->config['sql_explain'] && 0 === stripos(trim($sql), 'select')) {