PDOStatement::rowCount result when used after PDO::commit?
In the MySQL docs, there is a note about using mysql_affected_rows after a transaction commit: http://php.net/manual/en/function.mysql-affected-rows.php Note: Transactions If you are using transactions, you need to call mysql_affected_rows() after your INSERT, UPDATE, or DELETE query, not after the COMMIT. However, there is no such note on the PDOStatement::rowCount doc: http://www.php.net/manual/en/pdostatement.rowcount.php Does this mean the commit will not affect the affected rows count after INSERT, UPDATE or DELETE queries when using the PDO object? A PDOStatement is returned for each