We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab6651 commit bc561ccCopy full SHA for bc561cc
MysqliDb.php
@@ -888,9 +888,10 @@ public function delete($tableName, $numRows = null)
888
$stmt->execute();
889
$this->_stmtError = $stmt->error;
890
$this->_stmtErrno = $stmt->errno;
891
+ $this->count = $stmt->affected_rows;
892
$this->reset();
893
- return ($stmt->affected_rows > -1); // affected_rows returns 0 if nothing matched where statement, or required updating, -1 if error
894
+ return ($stmt->affected_rows > -1); // -1 indicates that the query returned an error
895
}
896
897
/**
0 commit comments