* [refac] fix calling undefined method.

This commit is contained in:
liugang
2025-06-03 09:15:11 +08:00
parent 8fefa46ce2
commit 230bc77313
+1 -1
View File
@@ -867,7 +867,7 @@ class baseRouter
{
if(empty($this->config->debug) || $this->config->debug < 3 || empty($this->config->installed)) return;
$performanceSchema = $this->query("SHOW VARIABLES LIKE 'performance_schema'")->fetch();
$performanceSchema = $this->dbh->query("SHOW VARIABLES LIKE 'performance_schema'")->fetch();
$performanceSwitch = $performanceSchema->Value ?? 'OFF';
$this->profiling = $performanceSwitch == 'ON' ? 'performance_schema' : 'show_profiles';