Currently for MS SQL Server the rowCount() for successful updates returns 0.
The RowCount is zero, while RecordsAffected is 1 (correct).
It may be related to ResultResourceimplementation, that uses result set as a source for RowCount property, and PDOStatement simply uses the ResultResource.RowCount directly. PDOStatement probably should use RecordsAffected property instead.
For updating operations via PDOStatement the rowCount property should show number of affected rows
Documentation
Currently for MS SQL Server the
rowCount()
for successful updates returns 0.The
RowCount
is zero, whileRecordsAffected
is 1 (correct).It may be related to
ResultResource
implementation, that uses result set as a source forRowCount
property, andPDOStatement
simply uses theResultResource.RowCount
directly.PDOStatement
probably should useRecordsAffected
property instead.