summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-02-12 02:29:06 +0100
committerAndrey Andreev <narf@bofh.bg>2012-02-12 02:29:06 +0100
commit7e93489fed826286abe2d0b5abd65badc13beab9 (patch)
tree2a9f725bf31266dc6a1f032ad75b97691f5816e0
parent2d002723f9a9677d613a91df953d7dcf9f4361e7 (diff)
Fix issue #81
-rw-r--r--system/database/drivers/odbc/odbc_result.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/database/drivers/odbc/odbc_result.php b/system/database/drivers/odbc/odbc_result.php
index 509c77a1b..115ba665c 100644
--- a/system/database/drivers/odbc/odbc_result.php
+++ b/system/database/drivers/odbc/odbc_result.php
@@ -145,7 +145,7 @@ class CI_DB_odbc_result extends CI_DB_result {
*/
protected function _fetch_assoc()
{
- return function_exists('odbc_fetch_object')
+ return function_exists('odbc_fetch_array')
? odbc_fetch_array($this->result_id)
: $this->_odbc_fetch_array($this->result_id);
}
@@ -185,7 +185,7 @@ class CI_DB_odbc_result extends CI_DB_result {
$rs_obj = new stdClass();
foreach ($rs as $k => $v)
{
- $field_name = odbc_field_name($odbc_result, $k+1);
+ $field_name = odbc_field_name($odbc_result, $k);
$rs_obj->$field_name = $v;
}
@@ -212,7 +212,7 @@ class CI_DB_odbc_result extends CI_DB_result {
$rs_assoc = array();
foreach ($rs as $k => $v)
{
- $field_name = odbc_field_name($odbc_result, $k+1);
+ $field_name = odbc_field_name($odbc_result, $k);
$rs_assoc[$field_name] = $v;
}