diff --git a/lib/trace/trace.class.php b/lib/trace/trace.class.php index c142def963..a1ef44dd53 100644 --- a/lib/trace/trace.class.php +++ b/lib/trace/trace.class.php @@ -80,6 +80,10 @@ class trace */ public function getSQLProfiles() { + global $config; + /* 达梦数据库不支持下面的语法,直接跳过。The */ + if($config->db->driver === 'dm') return; + $profiling = $this->dao->dbh->query('SHOW PROFILES')->fetchAll(PDO::FETCH_ASSOC); $this->trace['profiles'] = $profiling;