Num rows fix
diff --git a/system/database/drivers/interbase/interbase_result.php b/system/database/drivers/interbase/interbase_result.php
index 7d56c56..3d57211 100644
--- a/system/database/drivers/interbase/interbase_result.php
+++ b/system/database/drivers/interbase/interbase_result.php
@@ -52,7 +52,7 @@
return $this->num_rows;
}
- return $this->num_rows = (isset($this->result_array()) ? count($this->result_array()) : 0;
+ return 0;
}
// --------------------------------------------------------------------
@@ -143,6 +143,9 @@
*/
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 @@
*/
public function _fetch_assoc()
{
+ //Increment row count
+ $this->num_rows++;
+
return @ibase_fetch_assoc($this->result_id);
}
@@ -172,6 +178,9 @@
*/
public function _fetch_object()
{
+ //Increment row count
+ $this->num_rows++;
+
return @ibase_fetch_object($this->result_id);
}