Skip to content

Commit ede49ba

Browse files
committed
Fix a bug in CI_DB_sqlsrv_driver::affected_rows()
1 parent 74cb495 commit ede49ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

system/database/drivers/sqlsrv/sqlsrv_driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function escape_str($str, $like = FALSE)
225225
*/
226226
public function affected_rows()
227227
{
228-
return sqlrv_rows_affected($this->result_id);
228+
return sqlsrv_rows_affected($this->result_id);
229229
}
230230

231231
// --------------------------------------------------------------------

user_guide_src/source/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ Bug fixes for 3.0
316316
- Fixed a bug (#135) - PHP Error logging was impossible without the errors being displayed.
317317
- Fixed a bug (#1613) - :doc:`Form Helper <helpers/form_helper>` functions ``form_multiselect()``, ``form_dropdown()`` didn't properly handle empty array option groups.
318318
- Fixed a bug (#1605) - :doc:`Pagination Library <libraries/pagination>` produced incorrect *previous* and *next* link values.
319+
- Fixed a bug in SQLSRV's ``affected_rows()`` method where an erroneous function name was used.
319320

320321
Version 2.1.2
321322
=============

0 commit comments

Comments
 (0)