Commit bc561ccc authored by VonHirsch's avatar VonHirsch Committed by Alexander Butenko

Set db->count with affected_rows on delete (#750)

parent 2ab66510
......@@ -888,9 +888,10 @@ class MysqliDb
$stmt->execute();
$this->_stmtError = $stmt->error;
$this->_stmtErrno = $stmt->errno;
$this->count = $stmt->affected_rows;
$this->reset();
return ($stmt->affected_rows > -1); // affected_rows returns 0 if nothing matched where statement, or required updating, -1 if error
return ($stmt->affected_rows > -1); // -1 indicates that the query returned an error
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment