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,