mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 05:37:39 +02:00
MySQLI: mysqli_affected_rows() returns -1 on error [Closes #80]
This commit is contained in:
@@ -197,7 +197,7 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver, IDibiResultDri
|
||||
*/
|
||||
public function getAffectedRows()
|
||||
{
|
||||
return mysqli_affected_rows($this->connection);
|
||||
return mysqli_affected_rows($this->connection) === -1 ? FALSE : mysqli_affected_rows($this->connection);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user