* zin: fix error when db driver is dm (DaMeng).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user