summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-02-20 18:51:45 +0100
committerTimothy Warren <tim@timshomepage.net>2012-02-20 18:51:45 +0100
commitfa84d6186b7f61353d04132871a5223f80fa12ee (patch)
treea472570a9eb633839d2cd78773106d3fc2a7a709 /system/database/drivers
parent53e24f08f930d53dc0e23d180e14d452f97addf9 (diff)
Fixed result array fetching
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/interbase/interbase_result.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/database/drivers/interbase/interbase_result.php b/system/database/drivers/interbase/interbase_result.php
index c5608d977..c7b40d2ea 100644
--- a/system/database/drivers/interbase/interbase_result.php
+++ b/system/database/drivers/interbase/interbase_result.php
@@ -53,7 +53,7 @@ class CI_DB_interbase_result extends CI_DB_result {
}
//Get the results so that you can get an accurate rowcount
- $this->result_array();
+ $this->result();
return $this->num_rows;
}
@@ -231,6 +231,14 @@ class CI_DB_interbase_result extends CI_DB_result {
{
return $this->result_array;
}
+
+ // Since the object and array are really similar, just case
+ // the result object to an array if need be
+ if(count($this->result_object) > 0)
+ {
+ $this->result_array = (array)$this->result_object;
+ return $this->result_array;
+ }
// In the event that query caching is on the result_id variable
// will return FALSE since there isn't a valid SQL resource so