修正driver类 Model类get和all方法支持闭包查询

This commit is contained in:
thinkphp
2016-04-10 16:17:06 +08:00
parent 4aa86efc5a
commit e39b72c21c
2 changed files with 18 additions and 5 deletions

View File

@@ -2267,7 +2267,9 @@ abstract class Driver
} else {
// 未注册监听则记录到日志中
Log::record('[ SQL ] ' . $this->queryStr . ' [ RunTime:' . $runtime . 's ]', 'sql');
Log::record('[ EXPLAIN : ' . var_export($result, true) . ' ]', 'sql');
if (!empty($explain)) {
Log::record('[ EXPLAIN : ' . var_export($explain, true) . ' ]', 'sql');
}
}
}