summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
Diffstat (limited to 'system/database')
-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