1
0
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:
David Grudl
2013-04-03 13:57:48 +02:00
parent 388067cb5d
commit d09fc7d837

View File

@@ -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);
}