diff --git a/MySQLiBase.php b/MySQLiBase.php index 9c22134..989a22b 100644 --- a/MySQLiBase.php +++ b/MySQLiBase.php @@ -148,6 +148,9 @@ public function query($sql, array $params = []) { } if (!$stmt) { + + $ResponseObj->error = mysqli_error($this->link); + $ResponseObj->errorno = mysqli_errno($this->link); $ResponseObj->duration = $this->traceEnabled ? (microtime(true) - $traceStart) : 0; return $ResponseObj;