summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/odbc
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-05 22:15:26 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-05 22:15:26 +0100
commitf6779f5e2510811a1d4fe39864923226a475f298 (patch)
treedb3a85ee2eee8b2c86cb6d9966e6f4e738173595 /system/database/drivers/odbc
parentaaa8ddb5a48af8f37cf1015a7768957cce41acd3 (diff)
Fix #2856
Diffstat (limited to 'system/database/drivers/odbc')
-rw-r--r--system/database/drivers/odbc/odbc_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 45e91cbc5..6f635bdfb 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -222,7 +222,7 @@ class CI_DB_odbc_driver extends CI_DB {
*/
public function affected_rows()
{
- return @odbc_num_rows($this->conn_id);
+ return @odbc_num_rows($this->result_id);
}
// --------------------------------------------------------------------