1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16: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 669ce73096
commit 4843882e61

View File

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