Commit 5d3814ca authored by Juozas Kaziukenas's avatar Juozas Kaziukenas

Fixed affected rows count

Signed-off-by: 's avatarJuozas Kaziukenas <juozas@juokaz.com>
parent 1665ed9e
...@@ -244,6 +244,6 @@ class SqlsrvStatement implements \Doctrine\DBAL\Driver\Statement ...@@ -244,6 +244,6 @@ class SqlsrvStatement implements \Doctrine\DBAL\Driver\Statement
*/ */
public function rowCount() public function rowCount()
{ {
return sqlsrv_num_rows($this->_sth); return sqlsrv_rows_affected($this->_sth);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment