From 1c0b738b44a88dcffbcad217b012985610956d6f Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 21 Sep 2022 16:26:05 +0900 Subject: [PATCH] Fix query errors not being shown in debug info --- common/framework/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/db.php b/common/framework/db.php index 35709b341..20907ed92 100644 --- a/common/framework/db.php +++ b/common/framework/db.php @@ -1173,7 +1173,7 @@ class DB 'query_id' => $this->_query_id, 'connection' => $this->_type, 'elapsed_time' => sprintf('%0.5f', $elapsed_time), - 'result' => 'success', + 'result' => $this->_errno ? 'error' : 'success', 'errno' => $this->_errno, 'errstr' => $this->_errstr, 'called_file' => null,