summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-02-16 18:15:45 +0100
committerTimothy Warren <tim@timshomepage.net>2012-02-16 18:15:45 +0100
commite27216f88443775534e185e192996353d4958387 (patch)
treec47f8c20175b8b09282590583bc5249ba0d86974 /system/database/drivers
parent817af19bb12b88bae361034e00ce3a02da595f94 (diff)
Num rows fix
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/interbase/interbase_result.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/database/drivers/interbase/interbase_result.php b/system/database/drivers/interbase/interbase_result.php
index 7d56c56c6..3d5721138 100644
--- a/system/database/drivers/interbase/interbase_result.php
+++ b/system/database/drivers/interbase/interbase_result.php
@@ -52,7 +52,7 @@ class CI_DB_interbase_result extends CI_DB_result {
return $this->num_rows;
}
- return $this->num_rows = (isset($this->result_array()) ? count($this->result_array()) : 0;
+ return 0;
}
// --------------------------------------------------------------------
@@ -143,6 +143,9 @@ class CI_DB_interbase_result extends CI_DB_result {
*/
public function _data_seek($n = 0)
{
+ //Set the row count to 0
+ $this->num_rows = 0;
+
//Interbase driver doesn't implement a suitable function
return FALSE;
}
@@ -158,6 +161,9 @@ class CI_DB_interbase_result extends CI_DB_result {
*/
public function _fetch_assoc()
{
+ //Increment row count
+ $this->num_rows++;
+
return @ibase_fetch_assoc($this->result_id);
}
@@ -172,6 +178,9 @@ class CI_DB_interbase_result extends CI_DB_result {
*/
public function _fetch_object()
{
+ //Increment row count
+ $this->num_rows++;
+
return @ibase_fetch_object($this->result_id);
}