* zin: fix error when db driver is dm (DaMeng).

This commit is contained in:
sunhao
2023-09-01 14:40:38 +08:00
parent 86246d2dee
commit cf1a90dfc1
+4
View File
@@ -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;